setReplyTo($this->smtp_from,开发者_StackOverflow\'comp\');" />
开发者

Zend_Mail error at php unit testing

A particular code makes the error

include_once "Zend/Mail.php";
$mail->setReplyTo($this->smtp_from,开发者_StackOverflow'comp');

The error is: PHP Fatal error: Call to undefined method Zend_Mail::setReplyTo()

Can you point out possible causes of this?


There was a bug in older versions about that method, for safety use this instead:

$mail->addHeader('Reply-To', $this->smtp_from);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜