Author Topic: Mail config for O365 - Exchange  (Read 508 times)

Offline trundle

  • Newbie
  • *
  • Posts: 13
  • Karma: +3/-0
    • View Profile
Mail config for O365 - Exchange
« 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.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1908
  • Karma: +291/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Mail config for O365 - Exchange
« Reply #1 on: November 11, 2020, 01:53:22 AM »
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

Offline trundle

  • Newbie
  • *
  • Posts: 13
  • Karma: +3/-0
    • View Profile
Re: Mail config for O365 - Exchange
« Reply #2 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.


Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1908
  • Karma: +291/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Mail config for O365 - Exchange
« Reply #3 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
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline trundle

  • Newbie
  • *
  • Posts: 13
  • Karma: +3/-0
    • View Profile
Re: Mail config for O365 - Exchange
« Reply #4 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.

 

Powered by SMFPacks Social Login Mod