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
64d11e1c
Commit
64d11e1c
authored
Jan 31, 2002
by
Kjartan Mannes
Browse files
- updated user_mail() to return the result from the mail() call.
parent
86789516
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
64d11e1c
...
...
@@ -241,10 +241,10 @@ function user_mail($mail, $subject, $message, $header) {
// print "<pre>subject: $subject<hr />header: $header<hr />$message</pre>";
if
(
variable_get
(
"smtp_library"
,
""
)
&&
file_exists
(
variable_get
(
"smtp_library"
,
""
)))
{
include_once
variable_get
(
"smtp_library"
,
""
);
user_mail_wrapper
(
$mail
,
$subject
,
$message
,
$header
);
return
user_mail_wrapper
(
$mail
,
$subject
,
$message
,
$header
);
}
else
{
mail
(
$mail
,
$subject
,
$message
,
$header
);
return
mail
(
$mail
,
$subject
,
$message
,
$header
);
}
}
...
...
modules/user/user.module
View file @
64d11e1c
...
...
@@ -241,10 +241,10 @@ function user_mail($mail, $subject, $message, $header) {
// print "<pre>subject: $subject<hr />header: $header<hr />$message</pre>";
if
(
variable_get
(
"smtp_library"
,
""
)
&&
file_exists
(
variable_get
(
"smtp_library"
,
""
)))
{
include_once
variable_get
(
"smtp_library"
,
""
);
user_mail_wrapper
(
$mail
,
$subject
,
$message
,
$header
);
return
user_mail_wrapper
(
$mail
,
$subject
,
$message
,
$header
);
}
else
{
mail
(
$mail
,
$subject
,
$message
,
$header
);
return
mail
(
$mail
,
$subject
,
$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