Exception while invoking method 'createUser' Error: Invalid login: 535 Authentication failed

Hi I’m having an issue with the email package. I’m on Meteor 2.8.1 with the email package at 2.2.2

I followed the docs about how to set up the email package on Meteor docs here

I’m using the second method mentioned by having my Mailgun details in my Meteor settings.json file.
Mailgun is set up for SMTP with the correct details, so I’m not sure what could be going wrong.

Any suggestions would be greatly appreciated.

Thanks

Better if you can post the complete error logs here

Sorry, yes completely forgot to do that. Here is the error logs.

Exception while invoking method 'createUser' Error: Invalid login: 535 Authentication failed
I20221119-11:53:13.904(0)?     at SMTPConnection._formatError (/Users/******/.meteor/packages/email/.2.2.2.3my6s2.spcg3++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/nodemailer/lib/smtp-connection/index.js:784:19)
I20221119-11:53:13.904(0)?     at SMTPConnection._actionAUTHComplete (/Users/******/.meteor/packages/email/.2.2.2.3my6s2.spcg3++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/nodemailer/lib/smtp-connection/index.js:1536:34)
I20221119-11:53:13.905(0)?     at SMTPConnection.<anonymous> (/Users/******/.meteor/packages/email/.2.2.2.3my6s2.spcg3++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/nodemailer/lib/smtp-connection/index.js:540:26)
I20221119-11:53:13.905(0)?     at SMTPConnection._processResponse (/Users/******/.meteor/packages/email/.2.2.2.3my6s2.spcg3++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/nodemailer/lib/smtp-connection/index.js:947:20)
I20221119-11:53:13.905(0)?     at SMTPConnection._onData (/Users/******/.meteor/packages/email/.2.2.2.3my6s2.spcg3++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/nodemailer/lib/smtp-connection/index.js:749:14)
I20221119-11:53:13.905(0)?     at TLSSocket.SMTPConnection._onSocketData (/Users/******/.meteor/packages/email/.2.2.2.3my6s2.spcg3++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/nodemailer/lib/smtp-connection/index.js:189:44)
I20221119-11:53:13.906(0)?     at TLSSocket.emit (events.js:400:28)
I20221119-11:53:13.906(0)?     at TLSSocket.emit (domain.js:475:12)
I20221119-11:53:13.906(0)?     at addChunk (internal/streams/readable.js:293:12)
I20221119-11:53:13.906(0)?     at readableAddChunk (internal/streams/readable.js:267:9)
I20221119-11:53:13.906(0)?     at TLSSocket.Readable.push (internal/streams/readable.js:206:10)
I20221119-11:53:13.907(0)?     at TLSWrap.onStreamRead (internal/stream_base_commons.js:188:23)

When I remove the following from my settings.json nodemailer fires a correct email into the console

"packages": {
	"email": {
		"service": "Mailgun",
		"user": "postmaster@something",
		"password": "******"
	}
},