Error de SMTP al usar Gmail para enviar correo electrónico en PHP

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? (18313040)
SMTP Error: Could not connect to SMTP host. no photos' requests in pending! 

I get this error when using Gmail domain to send mail through my PHP script.

preguntado el 12 de junio de 12 a las 17:06

Your install of PHP doesn't support SSL encryption, which you need. -

Welcome to Stack Overflow! Please post the code relevant to the question. You can do so by editing your own question, and adding it there, in the body of the question. It will help us help you. -

1 Respuestas

Check your PHP configuration and see that php_openssl.dll is installed/enabled.

Respondido el 12 de junio de 12 a las 17:06

need to open the php.ini and find the line ";extension=php_openssl.dll"; just remove the ';'. - user1299518

thankx! @greg P solved the problem. waiting for the email to be received! - Sarim Javaid Kan

Glad I could help - hope you "Accept" the answer then :) - PIB

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.