Fixing email settings banner

This commit is contained in:
Sebastien Ros
2014-03-11 15:01:38 -07:00
parent d59166fcd9
commit 1e2b8a78ec

View File

@@ -58,7 +58,7 @@ namespace Orchard.Email.Models {
// establish if the settings are defined in the web.config file
var smtpClient = new SmtpClient();
if (!String.IsNullOrWhiteSpace(Address)) {
if (String.IsNullOrWhiteSpace(Address)) {
return false;
}
@@ -66,7 +66,7 @@ namespace Orchard.Email.Models {
return false;
}
return String.IsNullOrWhiteSpace(smtpClient.Host);
return true;
}
}
}