Changes

m
Line 184: Line 184:  
===Outlook / Office365 / Exchange server (with login/pass)===
 
===Outlook / Office365 / Exchange server (with login/pass)===
   −
This mode is not compatible with the two factor authentication. It is also called the SMTP AUTH method or Option 1 in this [https://docs.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365#option-3-configure-a-connector-to-send-mail-using-microsoft-365-or-office-365-smtp-relay Microsoft Tutorial]. Warning, according to Microsoft doc, this method is limited: It supports only 1 possible sender. Any other accounts will appear as the same sender.
+
It is also called the SMTP AUTH method or Option 1 in this [https://docs.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365#option-3-configure-a-connector-to-send-mail-using-microsoft-365-or-office-365-smtp-relay Microsoft Tutorial]. Warning, according to Microsoft doc, this method is limited: It supports only 1 possible sender. Any other accounts will appear as the same sender.
    
Setup may be:
 
Setup may be:
    
*Server: smtp.office365.com (Microsoft Office 365, Exchange Server) and smtp-mail.outlook.com
 
*Server: smtp.office365.com (Microsoft Office 365, Exchange Server) and smtp-mail.outlook.com
*User name: Your email account
+
*User name: The main email account  
 
*Password: Your password account (If you enabled the Double Authentication Method, you must create an "Application password" from menu https://account.microsoft.com/security/ -> "More security options" and use it as the password instead of your common password)
 
*Password: Your password account (If you enabled the Double Authentication Method, you must create an "Application password" from menu https://account.microsoft.com/security/ -> "More security options" and use it as the password instead of your common password)
 
*Port: 587
 
*Port: 587
 
*Use TLS (SSL) encrypt: no
 
*Use TLS (SSL) encrypt: no
 
*Use TLS (STARTTLS) encrypt: yes
 
*Use TLS (STARTTLS) encrypt: yes
 +
 +
*You must also go on the microsoft admin console and for each email, you must allow sending from an external platform. For this, on https://admin.microsoft.com go on  '''User file - Mail - Allow as...'''.  Add permissions and add also the main generic email account.
 +
*You must also allow the application "SMTP" to reach your account. For this, on https://admin.microsoft.com, go on '''User file - Mail - Manage mail application''' and check to allow 'SMTP authenticated'.
    
Note: Outlook and Office365 are the worst platforms we know to manage emails. It is not compliant with most web and emails standard so the setup is often difficult with this platform. Documentation about SMTP credential is also poor. It depends on a lot of parameters saved into your Outlook platform. Ask the parameters to use the SMTP server of your Outlook/Office365 platform to your Outlook/Office365 provider. Only your Outlook/Office365 provider is able to give you those parameters. If you can't contact him, I'm afraid, trying any combination of parameters is the only solution to find the good one with this email platform but the one suggested in this wiki should works in 90% of the cases (note that some other parameters specific to Office365 may also be expected by the platform, ask your Microsoft integrator).
 
Note: Outlook and Office365 are the worst platforms we know to manage emails. It is not compliant with most web and emails standard so the setup is often difficult with this platform. Documentation about SMTP credential is also poor. It depends on a lot of parameters saved into your Outlook platform. Ask the parameters to use the SMTP server of your Outlook/Office365 platform to your Outlook/Office365 provider. Only your Outlook/Office365 provider is able to give you those parameters. If you can't contact him, I'm afraid, trying any combination of parameters is the only solution to find the good one with this email platform but the one suggested in this wiki should works in 90% of the cases (note that some other parameters specific to Office365 may also be expected by the platform, ask your Microsoft integrator).
   −
Note: Some users has reported that you may solve trouble in the user/password validation by adding a rule in Office365 to accept SMTP e-mail without authentication keeping a restriction on the IP address of the server hosting your Dolibarr application.
+
Note: Some users has reported that you may solve trouble in the user/password validation by adding a rule in Office365 to accept SMTP e-mail without authentication, keeping a restriction on the IP address of the server hosting your Dolibarr application.
 +
 
 +
This is a more complete thread about setup reported by a French user: https://www.dolibarr.fr/forum/t/envoi-de-mail-depuis-un-smtp-office365/29299/15?u=eldy
    
===Outlook / Office365 / Exchange server (with mode relay)===
 
===Outlook / Office365 / Exchange server (with mode relay)===