summaryrefslogtreecommitdiff
path: root/includes/mail.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-02 02:37:36 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-02 02:37:36 +0000
commitb5674375009f9b9ca5c1e5313116af0f97a63b16 (patch)
tree9a35310940abcc6e5dfda925c7df3ed86b9693c1 /includes/mail.inc
parent7353d5da626649d62ff292e4129727c6f73deaeb (diff)
downloadbrdo-b5674375009f9b9ca5c1e5313116af0f97a63b16.tar.gz
brdo-b5674375009f9b9ca5c1e5313116af0f97a63b16.tar.bz2
#239825 by jeffschuler and bjaspan: Add support for OS-specific line endings on e-mails.
Diffstat (limited to 'includes/mail.inc')
-rw-r--r--includes/mail.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/mail.inc b/includes/mail.inc
index 4b3706188..92de9bf6d 100644
--- a/includes/mail.inc
+++ b/includes/mail.inc
@@ -7,6 +7,12 @@
*/
/**
+ * 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.
*
* Sending an e-mail works with defining an e-mail template (subject, text