Having Funny fsockopen issue while sending email

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
User avatar
highjo
Forum Contributor
Posts: 118
Joined: Tue Oct 24, 2006 1:07 pm

Having Funny fsockopen issue while sending email

Post 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!
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: Having Funny fsockopen issue while sending email

Post 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
User avatar
highjo
Forum Contributor
Posts: 118
Joined: Tue Oct 24, 2006 1:07 pm

Re: Having Funny fsockopen issue while sending email

Post 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
Post Reply