Handles Base 64 Encoding in Swift Mailer.

package Swift
subpackage Encoder
author Chris Corbyn

 Methods

Does nothing.

charsetChanged($charset) 

Parameters

$charset

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

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

Base64 encoded strings have a maximum line length of 76 characters. If the first line needs to be shorter, indicate the difference with $firstLineOffset.

Parameters

$string

string

to encode

$firstLineOffset

int

$maxLineLength

Returns

string