diff --git a/symphony/lib/toolkit/email-gateways/email.smtp.php b/symphony/lib/toolkit/email-gateways/email.smtp.php
index <HASH>..<HASH> 100644
--- a/symphony/lib/toolkit/email-gateways/email.smtp.php
+++ b/symphony/lib/toolkit/email-gateways/email.smtp.php
@@ -317,15 +317,9 @@ class SMTPGateway extends EmailGateway
         $this->setPort($config['port']);
         $this->setSecure($config['secure']);
 
-        if ($config['auth'] == 1) {
-            $this->setAuth(true);
-            $this->setUser($config['username']);
-            $this->setPass($config['password']);
-        } else {
-            $this->setAuth(false);
-            $this->setUser('');
-            $this->setPass('');
-        }
+        $this->setAuth((int)$config['auth'] === 1);
+        $this->setUser($config['username']);
+        $this->setPass($config['password']);
     }
 
     /**
Output password and email even when auth == 0

This will prevent overwriting the previous values

Picked from <I>c<I>fa