Mail_Mime::get() (Previous) (Next) Mail_Mime::setHTMLBody()

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Mail_Mime::headers()

Mail_Mime::headers() -- build the header lines

Opis

Returns an array with the headers needed to prepend to the email (MIME-Version and Content-Type). Please note that the function get() has to be called before calling headers().

Parametr

  • array $headerEx - Additional headers, the format of the argument is $array["header-name"] = "header-value"

Zwracana wartość

array - an associative array with the mime headers and the additional headers. The return value can directly passed to the second parameter of Mail::send().

Uwagi

Ta funkcja nie może być wywołana statycznie.

Ostrzeżenie

Mail_Mime::headers() has to be called after Mail_Mime::get().

Mail_Mime::get() (Previous) (Next) Mail_Mime::setHTMLBody()

Download Documentation Last updated: Mon, 02 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: dcasper@pressaprint.com
I ran into this so others may as well. When attempting to assign a custom Content-Type header to your messages you need to remember to call the function as

$mime->headers($hdrs, true);

In order to get your custom header to get used. There's a default Content-Type header of text/plain that only gets replaced if you pass along the $overwrite boolean as true.
Note by: Stephen Dewey
Note that although this page omits it, you should still add the To field explicitly using this function.