SMTP Settings for mail
Posted: Wed Jan 19, 2022 10:30 am
Hello all,
I have recently switched away from using an exim mail server to having Outlook host my business email due to security reasons. As such, I disabled php mail on my server and turned off the exim service through cPanel/whm. I also updated my OC store settings under the mail tab to use SMTP with the following settings:
Mail Engine: SMTP
SMTP Hostname: tls://smtp-mail.outlook.com
SMTP Username: <my email>
SMTP Password: <my password>
SMTP Port: 587
SMTP Timeout: 5
I know the credentials are correct, I have verified I can log in with those exact credentials. I got the smtp hostname and port from here: https://support.microsoft.com/en-us/off ... 414e2aa040
However, whenever I try to test this configuration by sending a message through the Contact Us page, the spinner keeps spinning, and under the network tools in firefox I can see the response is: "Error: Password not accepted from server!"
I spent some time poking around in the SMTP code, and I can see that its getting past all checks up to that point, but for some reason submitting the password results in no response (string length of response is 0). I thought maybe my SMTP hostname was wrong, so I tried it without the tls (which results in an EHLO error), and also tried smtp.office365.com (with/without tls) and I'm having pretty much the same problem. I also disabled that setting in cPanel/WHM that limits SMTP to the root account so that all accounts can send SMTP messages.
Does anyone know what the issue could be here?
OC Version: 3.0.3.6
Theme: Journal 3
PHP Version: 7.3
I have recently switched away from using an exim mail server to having Outlook host my business email due to security reasons. As such, I disabled php mail on my server and turned off the exim service through cPanel/whm. I also updated my OC store settings under the mail tab to use SMTP with the following settings:
Mail Engine: SMTP
SMTP Hostname: tls://smtp-mail.outlook.com
SMTP Username: <my email>
SMTP Password: <my password>
SMTP Port: 587
SMTP Timeout: 5
I know the credentials are correct, I have verified I can log in with those exact credentials. I got the smtp hostname and port from here: https://support.microsoft.com/en-us/off ... 414e2aa040
However, whenever I try to test this configuration by sending a message through the Contact Us page, the spinner keeps spinning, and under the network tools in firefox I can see the response is: "Error: Password not accepted from server!"
I spent some time poking around in the SMTP code, and I can see that its getting past all checks up to that point, but for some reason submitting the password results in no response (string length of response is 0). I thought maybe my SMTP hostname was wrong, so I tried it without the tls (which results in an EHLO error), and also tried smtp.office365.com (with/without tls) and I'm having pretty much the same problem. I also disabled that setting in cPanel/WHM that limits SMTP to the root account so that all accounts can send SMTP messages.
Does anyone know what the issue could be here?
OC Version: 3.0.3.6
Theme: Journal 3
PHP Version: 7.3