summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/sendmail.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index ddd08f11e..fbb31b3d8 100644
--- a/program/steps/mail/sendmail.inc
+++ b/program/steps/mail/sendmail.inc
@@ -194,7 +194,11 @@ else
unset($headers_php['To'], $headers_php['Subject']);
$header_str = $MAIL_MIME->txtHeaders($headers_php);
- $sent = mail($mailto, $msg_subject, $msg_body, $header_str, "-f$from");
+
+ if(ini_get('safe_mode'))
+ $sent = mail($mailto, $msg_subject, $msg_body, $header_str);
+ else
+ $sent = mail($mailto, $msg_subject, $msg_body, $header_str, "-f$from");
}