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