diff --git a/include/class.mailer.php b/include/class.mailer.php index cffaec5ed6f5c1b54923bb63c168e0c291f1980f..b124ffd65f9893b7cace527c4dc2f44e24124dd1 100644 --- a/include/class.mailer.php +++ b/include/class.mailer.php @@ -560,7 +560,8 @@ class Mailer { } //No SMTP or it failed....use php's native mail function. - $mail = mail::factory('mail'); + $args = array('-f '.$this->getEmail()->getEmail()); + $mail = mail::factory('mail', $args); // Ensure the To: header is properly encoded. $to = $headers['To']; $result = $mail->send($to, $headers, $body);