2015-12-16 21:46:54 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Net.Mail;
|
|
|
|
|
|
2015-12-21 09:58:09 +01:00
|
|
|
|
namespace Teknik.Configuration
|
2015-12-16 21:46:54 +01:00
|
|
|
|
{
|
2016-01-28 08:43:41 +01:00
|
|
|
|
public class ContactConfig
|
2015-12-16 21:46:54 +01:00
|
|
|
|
{
|
2016-01-29 00:24:12 +01:00
|
|
|
|
public bool Enabled { get; set; }
|
2015-12-16 21:46:54 +01:00
|
|
|
|
public string Host { get; set; }
|
|
|
|
|
public int Port { get; set; }
|
|
|
|
|
public string Username { get; set; }
|
|
|
|
|
public string Password { get; set; }
|
|
|
|
|
public bool SSL { get; set; }
|
|
|
|
|
|
2016-01-28 08:43:41 +01:00
|
|
|
|
public ContactConfig()
|
2015-12-16 21:46:54 +01:00
|
|
|
|
{
|
|
|
|
|
SetDefaults();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetDefaults()
|
|
|
|
|
{
|
2016-01-29 00:24:12 +01:00
|
|
|
|
Enabled = true;
|
2015-12-16 21:46:54 +01:00
|
|
|
|
Host = string.Empty;
|
|
|
|
|
Port = 25;
|
|
|
|
|
Username = string.Empty;
|
|
|
|
|
Password = string.Empty;
|
|
|
|
|
SSL = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|