Page 1 of 1

Having Funny fsockopen issue while sending email

Posted: Tue Aug 18, 2009 3:02 pm
by highjo
Hello guys
I was playing around the new swiftmailer 4.0.4 using my zend studio embbeded apache server where i can send successfully emails through gmail smtp.
Now that it's was fine and that i decided to use it in real project and this time along using xampp 1.6.8.any time i run the same function there is this error
Warning: fsockopen() [function.fsockopen]: 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 C:\xampp\htdocs\project\includes\swift\classes\Swift\Transport\StreamBuffer.php on line 243
i've tried to enable ssl from xampp index file it has accepter the certificate but still my error won't disapear.I'm really concerned about this.Can anyone share his opinion or experience? thanks for reading!

Re: Having Funny fsockopen issue while sending email

Posted: Tue Aug 18, 2009 3:44 pm
by Darhazer
Works fine with WAMP. By the way it's much easier to work with then XAMPP and I highly recommend it for localhost development under Windows

Anyway, are you sure:
* you've enabled

Code: Select all

extension=php_openssl.dll
(or .so if you are under linux)
* you've restarted apache
* you have the file in the extensions dir

Re: Having Funny fsockopen issue while sending email

Posted: Wed Aug 19, 2009 4:16 am
by highjo
thanks dude i would have sworn that it was enable.And then when i thought about it again i remembered that i left out the php.ini that is in apache/bin.
usually when i edit php.ini i do it the 3 places inside php folder php.ini , php5.ini and the one in apache folder.Thanks to let me realized that mistake