Add MailKit package and notification option classes
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
Provides DevExpress.Drawing.v24.1.Skia.dll; without it RichEditDocumentServer
|
||||
throws DllNotFoundException at runtime on Linux (Windows falls back to GDI+). -->
|
||||
<PackageReference Include="DevExpress.Drawing.Skia" Version="24.1.3" />
|
||||
<PackageReference Include="MailKit" Version="4.8.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.11" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.11" />
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
namespace ROLAC.API.Services.Notifications;
|
||||
|
||||
/// <summary>SMTP transport settings (bound from the "Smtp" config section).</summary>
|
||||
public sealed class SmtpOptions
|
||||
{
|
||||
public string Host { get; set; } = "";
|
||||
public int Port { get; set; } = 587;
|
||||
public bool UseSsl { get; set; } = true; // true → STARTTLS
|
||||
public string User { get; set; } = "";
|
||||
public string Password { get; set; } = "";
|
||||
public string FromAddress { get; set; } = "";
|
||||
public string FromName { get; set; } = "";
|
||||
}
|
||||
|
||||
/// <summary>Line Messaging API settings (bound from the "Line" config section).</summary>
|
||||
public sealed class LineOptions
|
||||
{
|
||||
public string ChannelAccessToken { get; set; } = "";
|
||||
public string ChannelSecret { get; set; } = "";
|
||||
}
|
||||
Reference in New Issue
Block a user