zend framework zend_mail function error included code

六眼飞鱼酱① 提交于 2019-12-02 19:52:37

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!