简体   繁体   中英

How to set up OpenSSL so I can send mail with PHP vis Gmail SMTP?

I have been sat solid looking for the answer to this question, I have tried many techniques and I just cannot get this to work.

I am using the PHP Mailer libraries to send an email through Gmail SMTP server, I am using PHP 4 with iis6 on a windows 2003 box.

This is the error I am given:

Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for '1.0/DST' instead in E:\\ltuweb\\36Hours\\phpmailer\\class.phpmailer.php on line 1612

Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for '1.0/DST' instead in E:\\ltuweb\\36Hours\\phpmailer\\class.phpmailer.php on line 1616

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 E:\\ltuweb\\36Hours\\phpmailer\\class.smtp.php on line 122 Message was not sent Mailer Error: SMTP Error: Could not connect to SMTP host.

Please can someone help me fix this, thank you in advance!

Ash

--------------- UPDATE! ----------------

I cannot see when I type in phpinfo(); a heading that says OpenSSL enabled, how do i address this issue because it is definitely uncommented in my php.ini file.

--------------- UPDATE! ----------------

It appears to have been our firewall etc that was blocking the ssl properly, grrrr dam cisco. Thanks everyone!

Thank you!

Did you install PHP with OpenSSL support, as described here? http://php.net/manual/en/openssl.installation.php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM