Commit 167955df authored by Kjartan's avatar Kjartan
Browse files

- fixing outgoing mails and added some documentation.

parent 3955d683
...@@ -246,7 +246,15 @@ function user_mail($mail, $subject, $message, $header) { ...@@ -246,7 +246,15 @@ function user_mail($mail, $subject, $message, $header) {
return user_mail_wrapper($mail, $subject, $message, $header); return user_mail_wrapper($mail, $subject, $message, $header);
} }
else { 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);
} }
} }
......
...@@ -246,7 +246,15 @@ function user_mail($mail, $subject, $message, $header) { ...@@ -246,7 +246,15 @@ function user_mail($mail, $subject, $message, $header) {
return user_mail_wrapper($mail, $subject, $message, $header); return user_mail_wrapper($mail, $subject, $message, $header);
} }
else { 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);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment