when my mailer.json is like this i have no issue sending email
{
“name”: “main”,
“module”: “mail”,
“action”: “setup”,
“options”: {
“host”: “smtp.office365.com”,
“port”: 587,
“username”: “it@",
“password”: "”
}
}
But if tick ‘Use SSL’ then following error;
i have been at this for sometime and not able to resolve the issue. On the linux server i have OpenSSL 3.0.2 15 Mar 2022.
What is missing? Help much appreciated…
I believe the outgoing smtp server for office365 uses STARTTLS instead of SSL/TLS. I don’t think Wappler supports that protocol? I may be wrong but I believe I had an issue similar to this before. Would probably be a @patrick question?
i dug into nodemailer. it seems it is not simple to go SSL. And realized without SSL nodemailer negotiates and fall back to best option that works for two ends. so i too settled for that.
I have no problem using office365 for smtp. These are my settings.
The challenge with using Microsoft is that by default 2FA is enabled for all accounts. You have to disable it and also ensure the User has “Authenticated SMTP” enabled.