AbanteCart Community

eCommerce construction => Installation and Configuration => Topic started by: trundle on November 10, 2020, 02:18:26 PM

Title: Mail config for O365 - Exchange
Post by: trundle on November 10, 2020, 02:18:26 PM
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.
Title: Re: Mail config for O365 - Exchange
Post by: abolabo on November 11, 2020, 01:53:22 AM
try to use 465 port instead 587.
587 usually used for ingoing emails.
Title: Re: Mail config for O365 - Exchange
Post by: trundle on November 11, 2020, 07:01:00 AM
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.

Title: Re: Mail config for O365 - Exchange
Post by: abolabo on November 11, 2020, 08:22:23 AM
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
Title: Re: Mail config for O365 - Exchange
Post by: trundle on November 13, 2020, 02:32:40 PM
Thank you. We were able to set up a mail connector and were able to get it working.