Getting errors while sending Mails

Error [0]: Failed to connect with fsockopen host=ssl://smtp.office365.com port=587

Give solution for this issue

Give coffee first :upside_down_face:

Have a look here : Setup EMails - Dolibarr ERP CRM Wiki

Good morning,
how did you configure mail o365, do you use the oauth2, since they disabled the old smtp early this year?

Jason

Hello,

just read the wiki : Setup EMails - Dolibarr ERP CRM Wiki

I am having difficulty figuring out how to make a new post on this forum but I am also experiencing issues with OAUTH2 with SMTP of O365 in my 19 Dolibarr instance, I can provide screenshots of my config as well as any necessary logs. I was able to get a token and everything but email still fails.