Fix: Email notification testing.

This commit is contained in:
Mark McDowall 2012-04-04 15:29:55 -07:00
parent d79fa1c2cd
commit c9fcde3bbb
4 changed files with 93 additions and 92 deletions

View file

@ -68,10 +68,10 @@ namespace NzbDrone.Web.Controllers
}
[HttpPost]
public JsonResult SendTestEmail(string server, int port, bool ssl, string username, string password, string fromAddress, string toAddresses)
public JsonResult TestEmail(string server, int port, bool ssl, string username, string password, string fromAddress, string toAddresses)
{
if (_smtpProvider.SendTestEmail(server, port, ssl, username, password, fromAddress, toAddresses))
JsonNotificationResult.Info("Successful", "Test email sent.");
return JsonNotificationResult.Info("Successful", "Test email sent.");
return JsonNotificationResult.Oops("Couldn't send Email, please check your settings");
}