public function HTMLMailMime::mimeEncodeHeader in HTML Mail 8
Same name and namespace in other branches
- 8.3 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 447 - Provides the MailMIME class for creating MIME-formatted email messages.
Class
- HTMLMailMime
- Class HTMLMailMime.
Namespace
Drupal\htmlmail\UtilityCode
public function mimeEncodeHeader($name, $value, $charset = 'UTF-8', $encoding = 'quoted-printable') {
return parent::encodeHeader($name, $value, $charset, $encoding);
}