From b5674375009f9b9ca5c1e5313116af0f97a63b16 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 2 Nov 2009 02:37:36 +0000 Subject: #239825 by jeffschuler and bjaspan: Add support for OS-specific line endings on e-mails. --- includes/mail.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'includes') diff --git a/includes/mail.inc b/includes/mail.inc index 4b3706188..92de9bf6d 100644 --- a/includes/mail.inc +++ b/includes/mail.inc @@ -6,6 +6,12 @@ * API functions for processing and sending e-mail. */ +/** + * Auto-detect appropriate line endings for e-mails. + * $conf['mail_line_endings'] will override this setting. + */ +define('MAIL_LINE_ENDINGS', isset($_SERVER['WINDIR']) || strpos($_SERVER['SERVER_SOFTWARE'], 'Win32') !== FALSE ? "\r\n" : "\n"); + /** * Compose and optionally send an e-mail message. * -- cgit v1.2.3