From fd660ac0e2af4fc3c2633cfd19bd31fd7a905951 Mon Sep 17 00:00:00 2001 From: thomascube Date: Tue, 1 Nov 2005 22:18:05 +0000 Subject: Fixed safe_mode issue and visual bug --- program/steps/mail/sendmail.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'program/steps/mail') 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"); } -- cgit v1.2.3