summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authorroundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c>2005-11-01 22:18:05 +0000
committerroundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c>2005-11-01 22:18:05 +0000
commit031e03812e6924ee21e0e1af57122fdef3d0772e (patch)
treedf04359c4a5f90e8a7c6e4657a951a68c600790e /roundcubemail/program/steps
parente81e1e6ba3f155303544a172819485ce96e65f05 (diff)
Fixed safe_mode issue and visual bug
git-svn-id: https://svn.roundcube.net/trunk@72 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/sendmail.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/sendmail.inc b/roundcubemail/program/steps/mail/sendmail.inc
index ddd08f11e..fbb31b3d8 100644
--- a/roundcubemail/program/steps/mail/sendmail.inc
+++ b/roundcubemail/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");
}