Adds MailKit (#69)
This commit is contained in:
parent
d6bba58b59
commit
e11d1f3ad9
5 changed files with 151 additions and 153 deletions
|
|
@ -15,6 +15,9 @@ namespace Server
|
|||
[JsonPropertyName("dataDirectories")]
|
||||
public List<string> DataDirectories { get; set; } = new List<string>();
|
||||
|
||||
[JsonPropertyName("emailSettings")]
|
||||
public EmailSettings emailSettings { get; set; } = new EmailSettings();
|
||||
|
||||
private static string FilePath => Path.Join(Core.BaseDirectory, "modernuo.json");
|
||||
|
||||
private static void PromptDataDirectories(Configuration config)
|
||||
|
|
@ -73,4 +76,29 @@ namespace Server
|
|||
Console.ResetColor();
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Make configuration pluggable. Move this to scripts
|
||||
public class EmailSettings
|
||||
{
|
||||
[JsonPropertyName("fromAddress")]
|
||||
public string FromAddress { get; set; }
|
||||
[JsonPropertyName("fromName")]
|
||||
public string FromName { get; set; }
|
||||
[JsonPropertyName("crashAddress")]
|
||||
public string crashAddress { get; set; }
|
||||
[JsonPropertyName("crashName")]
|
||||
public string crashName { get; set; }
|
||||
[JsonPropertyName("speechLogPageAddress")]
|
||||
public string speechLogPageAddress { get; set; }
|
||||
[JsonPropertyName("speechLogPageName")]
|
||||
public string speechLogPageName { get; set; }
|
||||
[JsonPropertyName("emailServer")]
|
||||
public string emailServer { get; set; }
|
||||
[JsonPropertyName("emailPort")]
|
||||
public int emailPort { get; set; }
|
||||
[JsonPropertyName("emailUsername")]
|
||||
public string emailUsername { get; set; }
|
||||
[JsonPropertyName("emailPassword")]
|
||||
public string emailPassword { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue