summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2005-11-01 22:18:05 +0000
committerthomascube <thomas@roundcube.net>2005-11-01 22:18:05 +0000
commitfd660ac0e2af4fc3c2633cfd19bd31fd7a905951 (patch)
tree24f7eb7d970310877ef1022800084a875bdea02a /program/steps
parent36df57ce32ebad9416d78e4f86a41e5f1707f4ad (diff)
Fixed safe_mode issue and visual bug
Diffstat (limited to 'program/steps')
-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");
}