You are here

constant MAIL_LINE_ENDINGS in Drupal 7

Auto-detect appropriate line endings for e-mails.

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

3 uses of MAIL_LINE_ENDINGS
DefaultMailSystem::mail in modules/system/system.mail.inc
Send an e-mail message, using Drupal variables and default settings.
DrupalHtmlToTextTestCase::testVeryLongLineWrap in modules/simpletest/tests/mail.test
Tests that drupal_html_to_text() wraps before 1000 characters.
drupal_html_to_text in includes/mail.inc
Transforms an HTML string into plain text, preserving its structure.

File

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

Code

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