Wednesday, July 4, 2012

PHPMailer5.1: ERROR: Failed to connect to server: Unable to find the socket transport "ssl"

If you get this error:

"SMTP -> ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (32) 
SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error: Could not connect to SMTP host."


You have to add or enable the following line in the php.ini file:
extension=php_openssl.dll


Resource:
http://www.devcha.com/2010/01/php-fsockopen-unable-to-connect-ssl.html

1 comment:

Anonymous said...

thanks!