无法使用gmail smtp服务器发送邮件

时间:2016-06-27 04:50:58

标签: php smtp cakephp-3.0 pyopenssl

您好我无法使用gmail smtp服务从我的网站发送电子邮件,这是通过使用php框架的cakephp3.x开发的。打击是我得到的错误

jmeter -Jsample_variables=delta,somethingelse -n -t testplan.jmx -l results.jtl

这是我的代码

stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed stream_socket_client(): Failed to enable crypto stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error) 

1 个答案:

答案 0 :(得分:0)

Google Help Site中有一个句子If your device or application supports SSL - connect to smtp.gmail.com on port 465.,因此请尝试从主机中删除ssl://前缀。

相关问题