Unable to send email using Global Mailer

Wappler Version : 3.5.5
Operating System : Mac Big Sur
Server Model: Nodejs
Database Type: mysql
Hosting Type: Docker Local

Expected behavior

Email should be sent.

Actual behavior

I am receiving a status 500 error with two different reasons, depending on whether I use gmail or a hosted email.

With gmail, I receive an error.

{“status”:“500”,“code”:“EENVELOPE”,“message”:“Mail command failed: 530-5.7.0 Authentication Required. Learn more at\n530 5.7.0 https://support.google.com/mail/?p=WantAuthError p24sm1540515ill.59 - gsmtp”,“stack”:“Error: Mail command failed: 530-5.7.0 Authentication Required. Learn more at\n530 5.7.0 https://support.google.com/mail/?p=WantAuthError p24sm1540515ill.59 - gsmtp\n at SMTPConnection._formatError (/opt/node_app/node_modules/nodemailer/lib/smtp-connection/index.js:784:19)\n at SMTPConnection._actionMAIL (/opt/node_app/node_modules/nodemailer/lib/smtp-connection/index.js:1553:34)\n at SMTPConnection. (/opt/node_app/node_modules/nodemailer/lib/smtp-connection/index.js:1035:18)\n at SMTPConnection._processResponse (/opt/node_app/node_modules/nodemailer/lib/smtp-connection/index.js:942:20)\n at SMTPConnection._onData (/opt/node_app/node_modules/nodemailer/lib/smtp-connection/index.js:749:14)\n at TLSSocket.SMTPConnection._onSocketData (/opt/node_app/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n at TLSSocket.emit (events.js:315:20)\n at addChunk (_stream_readable.js:295:12)\n at readableAddChunk (_stream_readable.js:271:9)\n at TLSSocket.Readable.push (_stream_readable.js:212:10)”}

With the hosted email, I receive an error that says turn on SMTP authentication in your mail client.

{“status”:“500”,“code”:“EENVELOPE”,“message”:“Can’t send mail - all recipients were rejected: 550-Please turn on SMTP Authentication in your mail client. ([127.0.0.1])\n550-[home-ip-removed]:61861 is not permitted to relay through this server\n550 without authentication.”,“stack”:“Error: Can’t send mail - all recipients were rejected: 550-Please turn on SMTP Authentication in your mail client. ([127.0.0.1])\n550-[home-ip-removed]:61861 is not permitted to relay through this server\n550 without authentication.\n at SMTPConnection._formatError (/opt/node_app/node_modules/nodemailer/lib/smtp-connection/index.js:784:19)\n at SMTPConnection._actionRCPT (/opt/node_app/node_modules/nodemailer/lib/smtp-connection/index.js:1613:28)\n at SMTPConnection. (/opt/node_app/node_modules/nodemailer/lib/smtp-connection/index.js:1566:30)\n at SMTPConnection._processResponse (/opt/node_app/node_modules/nodemailer/lib/smtp-connection/index.js:942:20)\n at SMTPConnection._onData (/opt/node_app/node_modules/nodemailer/lib/smtp-connection/index.js:749:14)\n at TLSSocket.SMTPConnection._onSocketData (/opt/node_app/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n at TLSSocket.emit (events.js:315:20)\n at addChunk (_stream_readable.js:295:12)\n at readableAddChunk (_stream_readable.js:271:9)\n at TLSSocket.Readable.push (_stream_readable.js:212:10)”}

How to reproduce

  1. Create a Global Mailer
  2. Create an API step with Send Mail

Things checked

  1. Both the gmail account and hosted account can be accessed via Mac Mail, iPad, and iPhone.
  2. For gmail, both IMAP and POP is set to enabled.
    Screen Shot 2020-11-25 at 6.44.45 AM
  3. For gmail, tried using both the account password and the app specific password
  4. For gmail, tried using the username with and without @gmail.com see Action Server Email Sent (GMAIL) Example
  5. For gmail, tried both 465 and 587 ports with and without SSL checked see Action Server Email Sent (GMAIL) Example
  6. For the hosted account, tried both 465 and 26 with and without SSL checked.

Debug Report From Wappler

chrome_debug.log 2.zip (5.3 KB)

Community Page
Last updated: