$bodyEncoding =
$this->Encoding;
$bodyCharSet =
$this->CharSet;
//Can we do a 7-bit downgrade?
if (static::ENCODING_8BIT ===
$bodyEncoding && !
$this->
has8bitChars($this->Body
)) { $bodyEncoding =
static::ENCODING_7BIT;
//All ISO 8859, Windows codepage and UTF-8 charsets are ascii compatible up to 7-bit
$bodyCharSet =
static::CHARSET_ASCII;
} //If lines are too long, and we're not already using an encoding that will shorten them,
//change to quoted-printable transfer encoding for the body part only
if (static::ENCODING_BASE64 !==
$this->Encoding &&
static::
hasLineLongerThanMax($this->Body
)) { $bodyEncoding =
static::ENCODING_QUOTED_PRINTABLE;
} $altBodyEncoding =
$this->Encoding;
$altBodyCharSet =
$this->CharSet;
//Can we do a 7-bit downgrade?
if (static::ENCODING_8BIT ===
$altBodyEncoding && !
$this->
has8bitChars($this->AltBody
)) { $altBodyEncoding =
static::ENCODING_7BIT;
//All ISO 8859, Windows codepage and UTF-8 charsets are ascii compatible up to 7-bit
$altBodyCharSet =
static::CHARSET_ASCII;
}