日期:2014-05-17 浏览次数:20565 次
$mailTransport = new Zend_Mail_Transport_Smtp ( 'smtp.gmail.com', array ('auth' => 'login', 'username' => 'aaa@gmail.com', 'password' => 'abc', 'ssl' => 'ssl' ) ); $mail = new Zend_Mail ( 'utf-8' ); $mail->setBodyHtml ( '<b>你好xxx</b>' ); $mail->setSubject ( 'xxx你好' ); $mail->setFrom ( 'aaa@gmail.com', 'aaa' ); $mail->addTo ( 'xxx@qq.com', 'xxx先生' ); $mail->send ( $mailTransport );