summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-06-09 17:24:42 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-06-09 17:24:42 +0000
commit167955dfb06906af26e6c4e694375b8f6a250992 (patch)
treea679c98ea6ac49c18ebf01bd63b5c043ad9b50e4
parent3955d6836aa6a86290084a48879acc9ff3bf8c2e (diff)
downloadbrdo-167955dfb06906af26e6c4e694375b8f6a250992.tar.gz
brdo-167955dfb06906af26e6c4e694375b8f6a250992.tar.bz2
- fixing outgoing mails and added some documentation.
-rw-r--r--modules/user.module10
-rw-r--r--modules/user/user.module10
2 files changed, 18 insertions, 2 deletions
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);
}
}
diff --git a/modules/user/user.module b/modules/user/user.module
index bfeb43343..404713eac 100644
--- a/modules/user/user.module
+++ b/modules/user/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);
}
}