From 167955dfb06906af26e6c4e694375b8f6a250992 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sun, 9 Jun 2002 17:24:42 +0000 Subject: - fixing outgoing mails and added some documentation. --- modules/user.module | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'modules/user.module') diff --git a/modules/user.module b/modules/user.module index bfeb43343..404713eac 100644 --- a/modules/user.module +++ b/modules/user.module @@ -246,7 +246,15 @@ function user_mail($mail, $subject, $message, $header) { return user_mail_wrapper($mail, $subject, $message, $header); } else { - return mail($mail, $subject, $message, $header); + /* + ** Note: if you are having problems with sending mail, or mails look wrong + ** when they are recieved you may have to modify the str_replace to suit + ** your systems. + ** - \r\n will work under dos and windows. + ** - \n will work for linux, unix and BSDs. + ** - \r will work for macs. + */ + return mail($mail, $subject, str_replace("\r", "", $message), $header); } } -- cgit v1.2.3