PHPMailer\PHPMailer

PHPMailer::hasLineLongerThanMax()public staticWP 1.0

Detect if a string contains a line longer than the maximum line length allowed by RFC 2822 section 2.1.1.

{} It's a method of the class: PHPMailer{}

No Hooks.

Return

true|false.

Usage

$result = PHPMailer::hasLineLongerThanMax( $str );
$str(string) (required)
-

Code of PHPMailer::hasLineLongerThanMax() WP 6.0

public static function hasLineLongerThanMax($str)
{
    return (bool) preg_match('/^(.{' . (self::MAX_LINE_LENGTH + strlen(static::$LE)) . ',})/m', $str);
}