Mig22 Posted September 28, 2011 Share Posted September 28, 2011 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.