$mailconfig = array(
'auth' => 'login',
'username' =>'[email protected]',
'password' =>'test*****');
$transport = new Zend_Mail_Transport_Smtp('smtp.qq.com',$mailconfig);
$mail = new Zend_Mail('utf-8');
$mail->setBodyHtml('example:this is a text mail.');
$mail->setFrom('[email protected]','test Email');
$mail->addTo('[email protected]','test');
$mail->setSubject('Hello,test');
$mail->send($transport);
运行报以下错误:
exception 'Zend_Mail_Protocol_Exception' with message '454 Authentication failed, please open smtp flag first! '
请问如何解决?
'auth' => 'login',
'username' =>'[email protected]',
'password' =>'test*****');
$transport = new Zend_Mail_Transport_Smtp('smtp.qq.com',$mailconfig);
$mail = new Zend_Mail('utf-8');
$mail->setBodyHtml('example:this is a text mail.');
$mail->setFrom('[email protected]','test Email');
$mail->addTo('[email protected]','test');
$mail->setSubject('Hello,test');
$mail->send($transport);
运行报以下错误:
exception 'Zend_Mail_Protocol_Exception' with message '454 Authentication failed, please open smtp flag first! '
请问如何解决?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货