mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Renamed Smtp to Email
This commit is contained in:
parent
d8259f5cff
commit
0d21f34ec5
5 changed files with 24 additions and 31 deletions
37
NzbDrone.Core/Notifications/Email/EmailSettings.cs
Normal file
37
NzbDrone.Core/Notifications/Email/EmailSettings.cs
Normal file
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using NzbDrone.Core.Annotations;
|
||||
|
||||
namespace NzbDrone.Core.Notifications.Email
|
||||
{
|
||||
public class EmailSettings : INotifcationSettings
|
||||
{
|
||||
[FieldDefinition(0, Label = "Server", HelpText = "Hostname or IP of Email server")]
|
||||
public String Server { get; set; }
|
||||
|
||||
[FieldDefinition(1, Label = "Port")]
|
||||
public Int32 Port { get; set; }
|
||||
|
||||
[FieldDefinition(2, Label = "Use SSL", HelpText = "Does your Email server use SSL?")]
|
||||
public Boolean UseSsl { get; set; }
|
||||
|
||||
[FieldDefinition(3, Label = "Username")]
|
||||
public String Username { get; set; }
|
||||
|
||||
[FieldDefinition(4, Label = "Password")]
|
||||
public String Password { get; set; }
|
||||
|
||||
[FieldDefinition(5, Label = "Sender Address")]
|
||||
public String From { get; set; }
|
||||
|
||||
[FieldDefinition(6, Label = "Recipient Address")]
|
||||
public String To { get; set; }
|
||||
|
||||
public bool IsValid
|
||||
{
|
||||
get
|
||||
{
|
||||
return !string.IsNullOrWhiteSpace(Server) && Port > 0 && !string.IsNullOrWhiteSpace(From) && !string.IsNullOrWhiteSpace(To);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue