Search code examples
cakephpcakephp-1.3email-headers

custom email headers - cakephp 1.3


How do I go about setting custom email headers within cakephp 1.3?

I am trying the following:

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

But the header does not exist in the email when I read it using PHP IMAP.

Thanks


Solution

  • Based on what I read in the API documentation, it should just be:

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