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 thesocket 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 ?
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.
Did you remove the ; in front of the line extension=php_openssl.dll in your php.ini?
加载中,请稍侯......
精彩评论