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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.