问题
I get the following error when I use zend_mail() function the following code :
Error on Page :
An error occurred
Application error
My code for sending mail using Zend_Mail() which I included in indexcontroller.php:
public function passchangeAction()
{
$mail = new Zend_Mail();
$mail->addTo('maymail@gmail.com', 'my name')
->setFrom('mymail@gmail.com', 'my name')
->setSubject('My Subject')
->setBodyText('Email Body')
->send();
}
There is no code present in passchange.phtml
来源:https://stackoverflow.com/questions/8508888/zend-framework-zend-mail-function-error-included-code