mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 17:13:49 -07:00
Added SMTP settings editing to the UI.
Added testing of SMTP settings to the settings page. Cleaned up some extraneous lines of JS and HTML.
This commit is contained in:
parent
9957aef811
commit
2c93a27962
13 changed files with 368 additions and 107 deletions
|
@ -5,6 +5,7 @@ namespace NzbDrone.Web.Models
|
|||
{
|
||||
public class NotificationSettingsModel
|
||||
{
|
||||
//XBMC
|
||||
[DisplayName("Enabled")]
|
||||
[Description("Enable notifications for XBMC?")]
|
||||
public bool XbmcEnabled { get; set; }
|
||||
|
@ -42,5 +43,59 @@ namespace NzbDrone.Web.Models
|
|||
[Description("XBMC webserver password")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public string XbmcPassword { get; set; }
|
||||
|
||||
//SMTP
|
||||
[DisplayName("Enabled")]
|
||||
[Description("Enable SMTP notifications?")]
|
||||
public bool SmtpEnabled { get; set; }
|
||||
|
||||
[DisplayName("Notify on Grab")]
|
||||
[Description("Send notification when episode is sent to SABnzbd?")]
|
||||
public bool SmtpNotifyOnGrab { get; set; }
|
||||
|
||||
[DisplayName("Notify on Download")]
|
||||
[Description("Send notification when episode is downloaded?")]
|
||||
public bool SmtpNotifyOnDownload { get; set; }
|
||||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("Server")]
|
||||
[Description("SMTP Server Hostname")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public string SmtpServer{ get; set; }
|
||||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("Port")]
|
||||
[Description("SMTP Server Port")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public int SmtpPort { get; set; }
|
||||
|
||||
[DisplayName("SSL")]
|
||||
[Description("Does the SMTP Server use SSL?")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public bool SmtpUseSsl { get; set; }
|
||||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("Username")]
|
||||
[Description("SMTP Server authentication username")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public string SmtpUsername { get; set; }
|
||||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("Password")]
|
||||
[Description("SMTP Server authentication password")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public string SmtpPassword { get; set; }
|
||||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("Send From Address")]
|
||||
[Description("Sender Email address")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public string SmtpFromAddress { get; set; }
|
||||
|
||||
[DataType(DataType.Text)]
|
||||
[DisplayName("Send To Addresses")]
|
||||
[Description("Comma separated list of addresses to email")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public string SmtpToAddresses { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue