chubbyk
chubbyk

Reputation: 6302

Cannot send email from PHP using gmail SMTP

I tried to send messages from wordpress using gmail SMTP.

Server is set to smtp.gmail.com and port to 465.

I'm getting this message:

SMTP -> ERROR: Failed to connect to server: Unable to find the

socket transport "ssl" - did you forget to enable it when you configured PHP? (34225384)

I'm on centOS

Should I recompile PHP and just enable something somewhere ?

Upvotes: 0

Views: 1393

Answers (2)

Dennis
Dennis

Reputation: 14477

Did you remove the ; in front of the line extension=php_openssl.dll in your php.ini?

Upvotes: 1

Clive
Clive

Reputation: 36956

It sounds like openssl hasn't been installed/enabled. Check phpinfo() for mentions of openssl, if it's not there you might need to re-compile with openssl support or enable the extension in php.ini.

Upvotes: 1

Related Questions