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,15 +58,15 @@ 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;
}
if (!String.IsNullOrWhiteSpace(Host) && Port == 0) {
return false;
}
return String.IsNullOrWhiteSpace(smtpClient.Host);
return true;
}
}
}