Force PHP_EOL for non-windows

This commit is contained in:
João Vieira 2025-03-25 20:56:07 +00:00
parent d83cd4a06d
commit d40aa5b7c2
1 changed files with 1 additions and 1 deletions

View File

@ -1548,7 +1548,7 @@ class PHPMailer
static::setLE(self::CRLF);
} else {
//Maintain backward compatibility with legacy Linux command line mailers
//Force PHP_EOL for all mail() calls on Linux
//Force PHP_EOL for all mail() calls on Linux - regardless of PHP versions -
static::setLE(PHP_EOL);
}
//Check for buggy PHP versions that add a header with an incorrect line break