From efa7311ed156b351bdde169fbf85eaa62ad32393 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Thu, 8 May 2014 17:52:19 -0500
Subject: [PATCH] oops: Fix incorrect email information lookup

---
 include/class.mailer.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.mailer.php b/include/class.mailer.php
index 50561652f..f037e083c 100644
--- a/include/class.mailer.php
+++ b/include/class.mailer.php
@@ -39,7 +39,7 @@ class Mailer {
             if(!$e->allowSpoofing() || !$email)
                 $email = $e;
         } elseif(!$email && $cfg && ($e=$cfg->getDefaultEmail())) {
-            if($e->isSMTPEnabled() && ($info=$email->getSMTPInfo()))
+            if($e->isSMTPEnabled() && ($info=$e->getSMTPInfo()))
                 $this->smtp = $info;
             $email = $e;
         }
-- 
GitLab