|
|
|
@ -1,32 +1,29 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using NzbDrone.Core.Annotations;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Notifications.Smtp
|
|
|
|
|
namespace NzbDrone.Core.Notifications.Email
|
|
|
|
|
{
|
|
|
|
|
public class SmtpSettings : INotifcationSettings
|
|
|
|
|
public class EmailSettings : INotifcationSettings
|
|
|
|
|
{
|
|
|
|
|
[FieldDefinition(0, Label = "Server", HelpText = "Hostname or IP of SMTP server")]
|
|
|
|
|
[FieldDefinition(0, Label = "Server", HelpText = "Hostname or IP of Email server")]
|
|
|
|
|
public String Server { get; set; }
|
|
|
|
|
|
|
|
|
|
[FieldDefinition(1, Label = "Port", HelpText = "SMTP Server Port")]
|
|
|
|
|
[FieldDefinition(1, Label = "Port")]
|
|
|
|
|
public Int32 Port { get; set; }
|
|
|
|
|
|
|
|
|
|
[FieldDefinition(2, Label = "Use SSL", HelpText = "Does your SMTP server use SSL?")]
|
|
|
|
|
[FieldDefinition(2, Label = "Use SSL", HelpText = "Does your Email server use SSL?")]
|
|
|
|
|
public Boolean UseSsl { get; set; }
|
|
|
|
|
|
|
|
|
|
[FieldDefinition(3, Label = "Username", HelpText = "SMTP Server Username")]
|
|
|
|
|
[FieldDefinition(3, Label = "Username")]
|
|
|
|
|
public String Username { get; set; }
|
|
|
|
|
|
|
|
|
|
[FieldDefinition(4, Label = "Password", HelpText = "SMTP Server Password")]
|
|
|
|
|
[FieldDefinition(4, Label = "Password")]
|
|
|
|
|
public String Password { get; set; }
|
|
|
|
|
|
|
|
|
|
[FieldDefinition(5, Label = "From Address", HelpText = "Sender's address")]
|
|
|
|
|
[FieldDefinition(5, Label = "Sender Address")]
|
|
|
|
|
public String From { get; set; }
|
|
|
|
|
|
|
|
|
|
[FieldDefinition(6, Label = "To Address", HelpText = "Recipient address")]
|
|
|
|
|
[FieldDefinition(6, Label = "Recipient Address")]
|
|
|
|
|
public String To { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool IsValid
|