Mail config for O365 - Exchange

Started by trundle, November 10, 2020, 02:18:26 PM

Previous topic - Next topic

trundle

I am just starting with Abantecart, and so far its great. I am trying to get the mail configuration working, although I am not having much luck. I got the website up and running on a local server and I want to have the email order confirmations emailed to my account through O365. I have the SMTP host set as:  ssl://smtp.office365.com and I am authenticating using my username and password, on port 587, but mail will not send. I keep getting errors:

warning: AbanteCart core v.1.2.16 fsockopen(): SSL operation failed with code 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number in   ..htdocs\store\core\lib\mail.php on line 376

and

warning: AbanteCart core v.1.2.16 fsockopen(): unable to connect to ssl://smtp.office365.com:587 (Unknown error) in ..\htdocs\store\core\lib\mail.php on line 376

I'm not sure what the issue is as I am very new to php.
Any help would be greatly appriciated.

abolabo

try to use 465 port instead 587.
587 usually used for ingoing emails.
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

trundle

I changed the port to 465, and the error changed:
Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.


abolabo

hmm.. you should to ask your email provider support about port for smtp-server.
guess looks like somebody blockes connection to this host.
Probably you should to allow such connections on mail provider side
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

trundle

Thank you. We were able to set up a mail connector and were able to get it working.

Forum Rules Code of conduct
AbanteCart.com 2010 -