PHPMailer\PHPMailer
PHPMailer::DKIM_BodyC()
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() PHPMailer::DKIM BodyC code WP 6.7.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; }