Commit 64d11e1c authored by Kjartan's avatar Kjartan

- updated user_mail() to return the result from the mail() call.

parent 86789516
......@@ -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);
}
}
......
......@@ -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);
}
}
......
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