Make a quick vote 🗳 ️How do you refer to SuiteCRM extensions: add-ons or plug-ins? Click here to have your say 👈

issue with SMTP Office 365

Hi,
I cannot set the smtp server in Suite CRM Version 7.5.3 (Sugar Version 6.5.23 (Build 1061))
The following setting :

  • SMTP Mail Server: * : smtp.office365.com
  • SMTP Port: * : 587
  • Use SMTP Authentication: enabled
  • Enable SMTP over SSL or TLS? : TLS

generate this message : SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

What can I do to fix this pb.

Thanks very much for a quick answer.

Francis RICHTER

Hi,
go to this link


https://github.com/salesagility/SuiteCRM/issues?utf8=✓&q=is%3Aissue+is%3Aopen+smtp

You will see you are not alone.
Post there some info (version …)

Just see a patch :


https://github.com/salesagility/SuiteCRM/commit/118822b1ce1a521e120a4bca3498b8a4e54b1db7

Please feedback

Hello
have you tried with imap, port 993, use sssl = yes ?
this is how I connect 10 emails to o365 from SuiteCRM…

please confirrm if ok or not…
Serge

Thanks you very much for your answer. I will do the modification as adviced and I will confirm toomorow if the pb fixed.

Francis RICHTER

I did the modifications but the message says “Error:SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting”.
I will do the modifications preconised on this link “https://github.com/salesagility/SuiteCRM/issues?utf8=✓&q=is%3Aissue+is%3Aopen+smtp

Thanks for your answer.

Francis RICHTER

I apply the patch but this do not fix the problem os SMTP.
Imap work fine.
Question : what is the old version where SMTP work fine ?

As you know I am using imap for SuiteCRM but I just remembered that I am using smtp for another application (limesurvey)

here are the settings that I use

I hope it helps…

Serge

I tried your setting but the problem remains. I am trying to use suitecrm 7.1 for the connection with office 365.

I updated SuiteCRM to the last version : 7.6.3 and I move the file on Gandi hostings but the error message remain the same after the settings of email smtp :
: Erreur emailing :SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

with the settings for office 365.

SMTP server : smtp.office365.com or outlook.office365.com
port : 25 or 587

SMTP SSL/TLS : none or TLS

:

Hello,
I am experiencing the same issue with trying to use Microsoft 365 SMTP settings in SuiteCRM.
Is there any solution for this issue at all? Could anyone advise how to resolve it?
Is this bug on the radar to be fixed in future releases?

Here is the error log. I double-checked my office365 mail accounts and actually used two. None worked.

3: Connection: opening to outlook. office365 .com:587, timeout=300, options=array()
3: Connection: opened
2: SERVER → CLIENT: 220 BL1P222CA0017. outlook.office365 .com Microsoft ESMTP MAIL Service ready at Sat, 20 Nov 2021 02:56:36 +0000

1: CLIENT → SERVER: EHLO 54.90.134.19

2: SERVER → CLIENT: 250-BL1P222CA0017. outlook. office365. com Hello [54.90.134.19]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8

1: CLIENT → SERVER: STARTTLS

2: SERVER → CLIENT: 220 2.0.0 SMTP server ready

1: CLIENT → SERVER: EHLO 54.90.134.19

2: SERVER → CLIENT: 250-BL1P222CA0017. outlook. office365. com Hello [54.90.134.19]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH LOGIN XOAUTH2
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250 SMTPUTF8

1: CLIENT → SERVER: AUTH LOGIN

2: SERVER → CLIENT: 334 VXNlcm5hbWU6

1: CLIENT → SERVER: —obfuscated—
2: SERVER → CLIENT: 334 UGFzc3dvcmQ6

1: CLIENT → SERVER: —obfuscated—
2: SERVER → CLIENT: 535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. Visit https:// aka. ms/smtp_auth_disabled for more information. [BL1P222CA0017. NAMP222. PROD. OUTLOOK. COM]

1: SMTP ERROR: Password command failed: 535 5.7.139 Authentication unsuccessful, SmtpClientAuthentication is disabled for the Tenant. Visit https: // aka. ms/smtp_auth_disabled for more information. [BL1P222CA0017. NAMP222. PROD. OUTLOOK. COM]

3: SMTP Error: Could not authenticate.
1: CLIENT → SERVER: QUIT

2: SERVER → CLIENT: 221 2.0.0 Service closing transmission channel

3: Connection: closed
3: SMTP Error: Could not authenticate.

Thank you.

1 Like

Hi, i’m sharing the same problem. upgraded from 7.11.3 to 7.12.5 and the problem persists.
The outlook365 account it seems only accepts TLS1.3

Hi @dipolnet
Please check your setting:- A Beginner's Guide to IMAP and SMTP Server Settings.
Simple Steps to Configure Inbound Email Settings in SuiteCRM