大约有 1000 个帖子,但不知何故我无法让事情正常进行。我用
$config = array('ssl' => 'tls',
'auth' => 'login',
'port' => 587,
'username' => 'myusername@gmail.com',
'password' => 'mypassword');
$tr = new Zend_Mail_Transport_Smtp('smtp.gmail.com', $config);
并得到一个
Fatal error: Uncaught exception 'Zend_Mail_Protocol_Exception' with message 'Unable to connect via TLS'
使用
$config = array('ssl' => 'ssl',
'auth' => 'login',
'port' => 465,
'username' => 'myusername@gmail.com',
'password' => 'mypassword');
$tr = new Zend_Mail_Transport_Smtp('smtp.gmail.com', $config);
我正进入(状态
Fatal error: Uncaught exception 'Zend_Mail_Protocol_Exception' with message 'Could not open socket'
顺便说一句,我使用的是 xampp 1.7.7。有什么帮助吗?