时间:2021-07-01 10:21:17 帮助过:7人阅读
$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 ( '你好xxx' ); $mail->setSubject ( 'xxx你好' ); $mail->setFrom ( 'aaa@gmail.com', 'aaa' ); $mail->addTo ( 'xxx@qq.com', 'xxx先生' ); $mail->send ( $mailTransport );