Jump to content

 

ryan@gofarwell.com

Member Since 25 May 2016
Offline Last Active Oct 10 2016 06:27 PM
-----

Posts I've Made

In Topic: Smtp - Office 365

27 May 2016 - 08:38 PM

Also having this Office365 SMTP "Error Message could not be sent. Mailer Error: SMTP connect() failed."-issue despite trying all suggested fixes mentioned above. Please note I am running Multi-vendor CS-Cart installation (v4.3.6) on Digital Ocean Ubuntu 14.04 LAMP stack droplet. Here are my settings from /admin.php?dispatch=settings.manage&section_id=Emails page:

 

Method: via SMTP server

SMTP host: smtp.office365.com:587

SMTP username: user@myoffice365domain.com

SMTP password: <mypass>

Use Encrypted Connection: TLS

Use SMTP authentication: Checked

 

 

I have also tried testing using the mailtest.php file but am still getting errors like:

 

Warning: fsockopen(): unable to connect to tls://outlook.office365.com:587 (Connection timed out) in /var/www/dev.artisanfishing.com/public_html/mailtest.php on line 9 php

 

...or (if I switch the protocol from tsl:// back to ssl:)...

 

Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol in/var/www/dev.artisanfishing.com/public_html/mailtest.php on line 9

Warning: fsockopen(): Failed to enable crypto in /var/www/dev.artisanfishing.com/public_html/mailtest.php on line 9

Warning: fsockopen(): unable to connect to ssl://smtp.office365.com:587 (Unknown error) in /var/www/dev.artisanfishing.com/public_html/mailtest.php on line 9

 

 

I have also looked into adjusting my class.smtp.php file as mentioned here: http://forum.cs-cart...ndpost&p=184898to no avail. Also note that my class.smtp.php lives in a different place than mentioned in comment #10, mine lives here: /app/lib/vendor/phpmailer/phpmailer/class.smtp.php

 

Is there something else I'm missing or additional documentation on this issue?

 

 

Thank you,

_rs