diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-11-01 22:18:05 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-11-01 22:18:05 +0000 |
| commit | 031e03812e6924ee21e0e1af57122fdef3d0772e (patch) | |
| tree | df04359c4a5f90e8a7c6e4657a951a68c600790e /roundcubemail/program/steps | |
| parent | e81e1e6ba3f155303544a172819485ce96e65f05 (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.inc | 6 |
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"); } |
