星期一, 1月 10, 2011

Zend_Mail

用法
$mail = new Zend_Mail();
$mail->setBodyHtml("Dear xxx: xxx"); //plain text
//$mail->setBodyHtml("<h1>hi</h1>");
$mail->setFrom('support@golfsonomy.com', 'Customer Services');
$mail->addTo($email);
$mail->setSubject('Golfsonomy-Customer Service');
$mail->send();



FAQ
  • email is treated as SPAM
    加入Reply就不會被歸為spam
    $mail->setReplyTo('contact@company.com', 'Company');

Reference
Zend_Mail sent email is treated as SPAM

沒有留言: