自定义电子邮件标题 - cakephp 1.3

时间:2013-08-15 01:05:17

标签: cakephp cakephp-1.3 email-headers

如何在cakephp 1.3中设置自定义电子邮件标题?

我正在尝试以下方法:

$ this-> Email-> headers = array('X-statusID'=> $ status_id);

但是当我使用PHP IMAP阅读它时,电子邮件中不存在标题。

由于

1 个答案:

答案 0 :(得分:2)

根据我在the API documentation中所读到的内容,它应该是:

$this->Email->header(array('X-statusID' => $status_id));
相关问题