PHP question, help!! (relates to OpenSSL)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amateurdbadude
Forum Newbie
Posts: 4
Joined: Sun Jun 27, 2010 3:13 pm
Location: Falls Church, VA

PHP question, help!! (relates to OpenSSL)

Post by amateurdbadude »

Hey everyone!

Quick question, how do I check that my OpenSSL is working on my server? (Server 2003 / IIS 6.0 / PHP )

I have vBulletin and it is throwing SMTP errors when attempting to send a test email using gmail's SMTP server (smtp.gmail.com)

It requires SSL and it does mention SSL in the error, however, I have went into php.ini in both C:\php and C:\windows and changed

;extension=php_openssl.dll

to

extension=php_openssl.dll

Also have the required dll's in their respective directories, then rebooted the server.

I have since then not found a way I can check if it is truly an OpenSSL issue...
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: PHP question, help!! (relates to OpenSSL)

Post by Jade »

Did you restart IIS after you made the change to you php.ini file?
amateurdbadude
Forum Newbie
Posts: 4
Joined: Sun Jun 27, 2010 3:13 pm
Location: Falls Church, VA

Re: PHP question, help!! (relates to OpenSSL)

Post by amateurdbadude »

Yes, I have restarted IIS several times and even rebooted the server (which is a task in itself, also causes all my other websites to go down for 20 minutes) =/
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: PHP question, help!! (relates to OpenSSL)

Post by Jade »

What is the SMTP error? Post the code you're using that's throwing the error.
amateurdbadude
Forum Newbie
Posts: 4
Joined: Sun Jun 27, 2010 3:13 pm
Location: Falls Church, VA

Re: PHP question, help!! (relates to OpenSSL)

Post by amateurdbadude »

The mailing function returned an error while trying to send the mail.
The following errors were outputted by PHP when attempting to send mail:


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 [path]\includes\class_mail.php on line 637

Warning: Unable to connect to SMTP server in [path]\includes\class_mail.php on line 603
Post Reply