constant MAIL_LINE_ENDINGS

Auto-detect appropriate line endings for e-mails.

$settings['mail_line_endings'] will override this setting.

3 uses of MAIL_LINE_ENDINGS
drupal_html_to_text in drupal/core/includes/mail.inc
Transforms an HTML string into plain text, preserving its structure.
HtmlToTextTest::testVeryLongLineWrap in drupal/core/modules/system/lib/Drupal/system/Tests/Mail/HtmlToTextTest.php
Tests that drupal_html_to_text() wraps before 1000 characters.
PhpMail::mail in drupal/core/lib/Drupal/Core/Mail/PhpMail.php
Sends an e-mail message, using Drupal variables and default settings.

File

drupal/core/includes/mail.inc, line 13
API functions for processing and sending e-mail.

Code

define('MAIL_LINE_ENDINGS', isset($_SERVER['WINDIR']) || strpos($_SERVER['SERVER_SOFTWARE'], 'Win32') !== FALSE ? "\r\n" : "\n");