mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
Fix: Email notification testing.
This commit is contained in:
parent
d79fa1c2cd
commit
c9fcde3bbb
4 changed files with 93 additions and 92 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue