请问关于Zend framework中的Zend_Mail的问题
我用qq和gmail的smtp server做转发,为什么总是出现Authentication failed错误?
------解决方案--------------------
gmail的。qq的没试过,
zendmail的使用方法如下,试过可用
$mailTransport = new Zend_Mail_Transport_Smtp ( 'smtp.gmail.com', array ('auth' => 'login', 'username' => [email protected]', 'password' => 'abc', 'ssl' => 'ssl' ) ); $mail = new Zend_Mail ( 'utf-8' ); $mail->setBodyHtml ( '<b>你好xxx</b>' ); $mail->setSubject ( 'xxx你好' ); $mail->setFrom ( [email protected]', 'aaa' ); $mail->addTo ( [email protected]', 'xxx先生' ); $mail->send ( $mailTransport );<div class="clear"> </div>