separate username/password for SMTP Auth
[claws.git] / src / smtp.c
index fa6d9fab18a88f7028d959e0e4cd97ad08895c7a..cbcc8f780ae617e35e48fcfd9cbf9284c9c2d722 100644 (file)
@@ -62,7 +62,8 @@ gint smtp_from(SockInfo *sock, const gchar *from,
                } else
                        authtype = SMTPAUTH_CRAM_MD5;
 
-               esmtp_auth(sock, authtype, userid, passwd);
+               if (esmtp_auth(sock, authtype, userid, passwd) != SM_OK)
+                       return SM_AUTHFAIL;
        }
 
        if (strchr(from, '<'))