PHPMailer\PHPMailer

PHPMailer::DKIM_BodyC()publicWP 1.0

Generate a DKIM canonicalization body. Uses the 'simple' algorithm from RFC6376 section 3.4.3. Canonicalized bodies should always use CRLF, regardless of mailer setting.

Method of the class: PHPMailer{}

No Hooks.

Return

String.

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->DKIM_BodyC( $body );
$body(string) (required)
Message Body

Notes

PHPMailer::DKIM_BodyC() code WP 6.5.2

public function DKIM_BodyC($body)
{
    if (empty($body)) {
        return self::CRLF;
    }
    //Normalize line endings to CRLF
    $body = static::normalizeBreaks($body, self::CRLF);

    //Reduce multiple trailing line breaks to a single one
    return static::stripTrailingBreaks($body) . self::CRLF;
}