-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmailConfiguration.cs
More file actions
35 lines (31 loc) · 833 Bytes
/
EmailConfiguration.cs
File metadata and controls
35 lines (31 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Text;
namespace AutomaticAnnouncements
{
/*
* Interface and class to help the email service
*/
public interface IEmailConfiguration
{
string SmtpServer { get; }
int SmtpPort { get; }
string SmtpUsername { get; set; }
string SmtpPassword { get; set; }
string PopServer { get; }
int PopPort { get; }
string PopUsername { get; }
string PopPassword { get; }
}
public class EmailConfiguration : IEmailConfiguration
{
public string SmtpServer { get; set; }
public int SmtpPort { get; set; }
public string SmtpUsername { get; set; }
public string SmtpPassword { get; set; }
public string PopServer { get; set; }
public int PopPort { get; set; }
public string PopUsername { get; set; }
public string PopPassword { get; set; }
}
}