hi everyone
My environment is tthe following
Debian 10
Ghost Version 5.49.2
Environment production
Database mysql
Mail SMTP
This is the current SMTP setup
“mail”: {
“from”: “research@",
“transport”: “SMTP”,
“options”: {
“host”: “smtp.office365.com”,
“port”: 587,
“service”: “O365”,
“secure”: false,
“requireTLS”: true,
“auth”: {
“user”: "research@”,
“pass”: “***********”
}
}
}
Ghost is unable to send emails using Office 365.
In the logs I can see the following:
[2023-07-21 10:46:09] INFO “DELETE /ghost/api/admin/invites/64ba614e59c2aa41f6ca0ef0” 204 13ms
[2023-07-21 10:46:14] WARN Error sending email: Failed to send email. Reason: Sending failed. Please check your email settings and resend the invitation.
[2023-07-21 10:46:14] ERROR “POST /ghost/api/admin/invites/” 500 5405ms
Error sending email: Failed to send email. Reason: Sending failed. Please check your email settings and resend the invitation.
“Please see Configuration - Adapt your publication to suit your needs for instructions on configuring email.”
Error ID:
d0b81be0-27b3-11ee-b5ec-db16bc474e35
Error: Sending failed
at createMailError (/home/ghostadmin/html/versions/5.49.2/core/server/services/mail/GhostMailer.js:68:12)
at DirectMailer. (/home/ghostadmin/html/versions/5.49.2/node_modules/nodemailer-direct-transport/lib/direct-transport.js:157:41)
at DirectMailer. (/home/ghostadmin/html/versions/5.49.2/node_modules/nodemailer-direct-transport/lib/direct-transport.js:228:30)
at /home/ghostadmin/html/versions/5.49.2/node_modules/nodemailer-direct-transport/lib/direct-transport.js:350:28
at callback (/home/ghostadmin/html/versions/5.49.2/node_modules/smtp-connection/lib/smtp-connection.js:374:14)
at SMTPConnection. (/home/ghostadmin/html/versions/5.49.2/node_modules/smtp-connection/lib/smtp-connection.js:385:20)
at SMTPConnection._actionMAIL (/home/ghostadmin/html/versions/5.49.2/node_modules/smtp-connection/lib/smtp-connection.js:1252:16)
at SMTPConnection. (/home/ghostadmin/html/versions/5.49.2/node_modules/smtp-connection/lib/smtp-connection.js:759:14)
at SMTPConnection._processResponse (/home/ghostadmin/html/versions/5.49.2/node_modules/smtp-connection/lib/smtp-connection.js:669:16)
at SMTPConnection._onData (/home/ghostadmin/html/versions/5.49.2/node_modules/smtp-connection/lib/smtp-connection.js:493:10)
at TLSSocket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
Please can anyone help me?
Regards
Ricardo Cardoso