Mail_Mime::encodeHeader()

Mail_Mime::encodeHeader() – encode header value

Synopsis

require_once 'Mail/mime.php';

string encodeHeader ( string $name , string $value , string $charset , string $encoding )

Description

Returns encoded header value as for RFC2047.

Parameter

  • string $name - The header name

  • string $value - The header body

  • string $charset - Character set used in header body

  • string $encoding - Encoding ("base64" or "quoted-printable")

Return value

string - Returns encoded header body (without a name)

Note

This function can not be called statically.

プレインテキスト部分を設定する (Previous) コンストラクタ (Next)
Last updated: Sat, 25 Oct 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

Note by: matteosistisette@gmail.com
If the parameters $charset and $encoding are always required, then I wonder what the $params['head_encoding'] and $params['head_charset'] passed to the Mail_mime constructur are for. The relationship between the two should be explained.