I'm using Gmail smtp to send saltcode. its updated in DB but not sending email. am getting error "Failed to load resource: the server responded with a status of 500 (Internal Server Error)"
Hello
Please check this doc and follow step by step:
2024-05-17T00:38:49.066Z server-connect:app options: {
instance: 'smtp',
subject: 'Your Authorization Code',
fromName: 'Website',
fromEmail: 'noriply@test.com',
toName: "{{$_POST.first_name+' '+$_POST.last_name}}",
toEmail: '{{$_POST.email}}',
body: 'Your Authorization code is: {{g_mycode}}'
}
2024-05-17T00:38:49.579Z server-connect:server Got error? Error: Invalid login: 534-5.7.9 Application-specific password required. For more information, go to
534 5.7.9 Sign in with app passwords - Google Account Help 00721157ae682-6209e347a4asm37463087b3.93 - gsmtp
at SMTPConnection._formatError (C:\Users\O-Tune TV\AppData\Local\Wappler\resources\app\node_modules\nodemailer\lib\smtp-connection\index.js:784:19)
at SMTPConnection._actionAUTHComplete (C:\Users\O-Tune TV\AppData\Local\Wappler\resources\app\node_modules\nodemailer\lib\smtp-connection\index.js:1536:34)
at SMTPConnection. (C:\Users\O-Tune TV\AppData\Local\Wappler\resources\app\node_modules\nodemailer\lib\smtp-connection\index.js:540:26)
at SMTPConnection._processResponse (C:\Users\O-Tune TV\AppData\Local\Wappler\resources\app\node_modules\nodemailer\lib\smtp-connection\index.js:947:20)
at SMTPConnection._onData (C:\Users\O-Tune TV\AppData\Local\Wappler\resources\app\node_modules\nodemailer\lib\smtp-connection\index.js:749:14)
at SMTPConnection._onSocketData (C:\Users\O-Tune TV\AppData\Local\Wappler\resources\app\node_modules\nodemailer\lib\smtp-connection\index.js:189:44)
at TLSSocket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at TLSSocket.push (node:internal/streams/readable:234:10) {
code: 'EAUTH',
response: '534-5.7.9 Application-specific password required. For more information, go to\n' +
'534 5.7.9 Sign in with app passwords - Google Account Help 00721157ae682-6209e347a4asm37463087b3.93 - gsmtp',
responseCode: 534,
command: 'AUTH PLAIN'
}
it seem google settings passwords issue
How is your mailer setup config?
Can you show us?
Don't forget to blur sensitive info
Indeed, that's the problem
the password is correct. Less secure app access on google is the problem however google is saying this feature is unavailable.
I've found this:
There you have a link to a google answer, maybe you can try that
found the problem. header email address cannot be used "test.com" only real email address can be used