Handles Base64 (B) Header Encoding in Swift Mailer.

package Swift
subpackage Mime
author Chris Corbyn

 Methods

Notify this observer that the entity's charset has changed.

charsetChanged(string $charset) 
Inherited
inherited_from \Swift_Mime_CharsetObserver::charsetChanged()
inherited_from \Swift_Encoder::charsetChanged()
inherited_from \Swift_Mime_HeaderEncoder::charsetChanged()

Parameters

$charset

string

Takes an unencoded string and produces a Base64 encoded string from it.

encodeString(string $string, int $firstLineOffset, $maxLineLength, string $charset) : string

If the charset is iso-2022-jp, it uses mb_encode_mimeheader instead of default encodeString, otherwise pass to the parent method.

Parameters

$string

string

to encode

$firstLineOffset

int

$maxLineLength

$charset

string

Returns

string

Get the name of this encoding scheme.

getName() : string

Returns the string 'B'.

Returns

string