Studyon Minte9.com
ZF 1.0

Study

Mail



// controller

<?php
$mail = new Zend_Mail();	

$body = nl2br($this->view->render('mail/activation_email.phtml'));

$mail->setBodyHtml($body);
$mail->setFrom("support@zfsite.com", "support@zfsite.com");
$mail->addTo($data['email']);
$mail->setSubject('zfsite.com - Please activate your account');

if ($mail->send()) {
	// ok
} else {
	// failed
}


http://framework.zend.com/manual/en/zend.mail.introduction.html