Page 1 of 1

PHP question, help!! (relates to OpenSSL)

Posted: Wed Jul 21, 2010 8:06 am
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...

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

Posted: Wed Jul 21, 2010 12:19 pm
by Jade
Did you restart IIS after you made the change to you php.ini file?

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

Posted: Wed Jul 21, 2010 1:22 pm
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) =/

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

Posted: Wed Jul 21, 2010 2:21 pm
by Jade
What is the SMTP error? Post the code you're using that's throwing the error.

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

Posted: Wed Jul 21, 2010 4:09 pm
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