Jump to content

Unable to find the socket transport for SSL, though enabled in ini


Recommended Posts

Hello, I have recently installed a php, mysql and apache server on OS X Snow Leopard (separate from the system install) using MacPorts.  I have 'LoadModule ssl_module modules/mod_ssl.so' uncommented in the httpd.conf file and the directory path is correct, however when sending an email via SwiftMailer through TLS encryption I get the following error:

 

Warning: stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /Library/WebServer/Documents/neuro/_scripts/lib/classes/Swift/Transport/StreamBuffer.php on line 271 Fatal error: Uncaught exception 'Swift_TransportException' with message 'Connection could not be established with host smtp.gmail.com [unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? #27359184]' in /Library/WebServer/Documents/neuro/_scripts/lib/classes/Swift/Transport/StreamBuffer.php:273 Stack trace: #0 /Library/WebServer/Documents/neuro/_scripts/lib/classes/Swift/Transport/StreamBuffer.php(66): Swift_Transport_StreamBuffer->_establishSocketConnection() #1 /Library/WebServer/Documents/neuro/_scripts/lib/classes/Swift/Transport/AbstractSmtpTransport.php(116): Swift_Transport_StreamBuffer->initialize(Array) #2 /Library/WebServer/Documents/neuro/_scripts/lib/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start() #3 /Library/WebServer/Documents/neuro/_scripts/test.php(37): Swift_Mailer->send(Object(Swift_Message)) #4 {main} thrown in /Library/WebServer/Documents/neuro/_scripts/lib/classes/Swift/Transport/StreamBuffer.php on line 273

 

What am I missing?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.