You are here

public function HtmlMailMime::mimeEncodeHeader in HTML Mail 8.3

Same name and namespace in other branches
  1. 8 src/Utility/HTMLMailMime.php \Drupal\htmlmail\Utility\HTMLMailMime::mimeEncodeHeader()

Encodes a header value as per RFC2047.

Parameters

string $name: The header name.

string $value: The header value to be encoded.

string $charset: The character set name to be used, such as 'UTF-8' or 'ISO-8859-1'.

string $encoding: The encoding name. Must be be one of:

  • base64:
  • quoted-printable.

Return value

string The encoded header value (without a name)

See also

http://www.apps.ietf.org/rfc/rfc2047.html

File

src/Utility/HtmlMailMime.php, line 457

Class

HtmlMailMime
Class HtmlMailMime.

Namespace

Drupal\htmlmail\Utility

Code

public function mimeEncodeHeader($name, $value, $charset = 'UTF-8', $encoding = 'quoted-printable') {
  return parent::encodeHeader($name, $value, $charset, $encoding);
}