阅读背景:

[Zend Framework 1]使用gmail发送邮件

来源:互联网 

That is my code:

那是我的代码:

$config = array(
'ssl' => 'tls',
'port' => 587,
'auth' => 'login',
'username' => '[email protected]',
'password' => 'test');

$mail = new Zend_Mail('UTF-8');
$transport = new Zend_Mail_Transport_Smtp('smtp.gmail.com', $config);

$mail->setBodyHtml('test');
$mail->setFrom('[email protected]', 'thrth');
$mail->addTo('[email protected]', 'thr');
$mail->setSubject('test');
$mail->send($transport);
$config = array(
'



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: