Office 365 SMTP Email config |
CodeIgniter 2.0 (not an option to move up to 3.0 yet), LAMP Server running on Windows Machine (Apache 2.2).
Just migrated to Office 365. Everything running smoothly except a form that emails out.... I'm receiving the following error message: Code: 220 BY2PR16CA0040.outlook.office365.com Microsoft ESMTP MAIL Service ready at Fri, 22 Apr 2016 17:53:52 +0000 Configuration of email config file Code: $config['protocol'] = 'smtp'; Any ideas why this error pops up?
I'm having the same problem and wondered if anyone had found a fix ?
It seems to be that AUTH is not advertised in the EHLO from O365
Sounds like it is not seeing the mail servers ip, check your mail server log files.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Change the line
$config['smtp_timeout'] = '5'; to $config['smtp_timeout'] = '60'; This error happens because 5 seconds is not sufficent time to authenticate your login and password. If 5 seconds has passed and it not validate your login and password, you will receive this error.
I am having a similar issue sending through office365 as well. About 75% of the emails are going out successfully. On the ones not sending, the debugger is showing me errors like:
Failed to send AUTH LOGIN command. Error: 235 2.7.0 Authentication successful target host CY4PR04MB0870.namprd04.prod.outlook.com and Failed to authenticate password. Error: Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method. By changing the smtp_timeout = 1, I was able to replicate the error, so I'm hopeful that increasing it to something greater than 5 will do the trick. Thank you for the post and responses! |
Welcome Guest, Not a member yet? Register Sign In |