Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
167955df
Commit
167955df
authored
Jun 09, 2002
by
Kjartan Mannes
Browse files
- fixing outgoing mails and added some documentation.
parent
3955d683
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
167955df
...
...
@@ -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
);
}
}
...
...
modules/user/user.module
View file @
167955df
...
...
@@ -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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment