Email issues with microsoft 365 and STARTTLS

Wappler Version : 4.9
Operating System : windows 11
Server Model: NodeJS
Database Type:MYSQL
Hosting Type: Heroku

Expected behavior

should send the email

Actual behavior

I get the following error

code: “EAUTH”
message: “Missing credentials for “LOGIN””
stack: “Error: Missing credentials for “LOGIN”\n at SMTPConnection._formatError (/app/node_modules/nodemailer/lib/smtp-connection/index.js:784:19)\n at SMTPConnection.login (/app/node_modules/nodemailer/lib/smtp-connection/index.js:438:38)\n at /app/node_modules/nodemailer/lib/smtp-transport/index.js:271:32\n at SMTPConnection. (/app/node_modules/nodemailer/lib/smtp-connection/index.js:209:17)\n at Object.onceWrapper (node:events:641:28)\n at SMTPConnection.emit (node:events:527:28)\n at SMTPConnection._actionEHLO (/app/node_modules/nodemailer/lib/smtp-connection/index.js:1319:14)\n at SMTPConnection._processResponse (/app/node_modules/nodemailer/lib/smtp-connection/index.js:947:20)\n at SMTPConnection._onData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:749:14)\n at SMTPConnection._onSocketData (/app/node_modules/nodemailer/lib/smtp-connection/index.js:189:44)”
status: “500”

I have the following settings

HOST: smtp.office365.com
PORT: 587
SSL not checked

I read the post “Email not sending…” - Jan20 and it seemed to suggest that starttls on nodejs would auto detect and work but doesnt for me on this version/setup

How to reproduce

Set up send email with settings as above and look at the

Community Page
Last updated: