Line 226:
Line 226:
This is a more complete thread about this setup reported by a French user: https://www.dolibarr.fr/forum/t/envoi-de-mail-depuis-un-smtp-office365/29299/15?u=eldy
This is a more complete thread about this setup reported by a French user: https://www.dolibarr.fr/forum/t/envoi-de-mail-depuis-un-smtp-office365/29299/15?u=eldy
+
+
[File:Warning.png] If you got error:
+
Error [120]: Ran into problems sending Mail. Response: 501 5.5.4 Invalid domain name [...]
+
Error [126]: 'smtp.office365.com' does not support authenticated connections or temporary error. Error after sending EHLO xxxxxx:4435 : 501
+
+
try to go on Home - Setup - Other and add MAIL_SMTP_USE_FROM_FOR_HELO to value 1 so Dolibarr will use the domain in the from email as the HELO string.
===Outlook / Office365 / Exchange server (with OAuth2)===
===Outlook / Office365 / Exchange server (with OAuth2)===