Class SmtpCredentials
SMTP credentials to use for sending mail (e.g. via Mailgun or something similar).
[Table("SmtpCredentials")]
[Index("Slug", new string[] { }, IsUnique = true)]
public sealed class SmtpCredentials
- Inheritance
-
SmtpCredentials
- Inherited Members
Properties
EnableSSL
SSL or plaintext. Ideally you would always use SSL!
public bool EnableSSL { get; set; }
Property Value
Host
SMTP host.
public required string Host { get; set; }
Property Value
Id
Primary key.
[Key]
public long Id { get; set; }
Property Value
Password
SMTP password (in plaintext!).
public required string Password { get; set; }
Property Value
Port
Port number to use. SMTP port numbers are typically 25, 465 or 587.
public short Port { get; set; }
Property Value
Slug
A slug string for identifying the use-case and/or context of an SmtpCredentials instance (e.g. "PasswordResetEmailSendoutCreds" or something like that).
[MaxLength(64)]
public required string Slug { get; set; }
Property Value
Username
SMTP username.
public required string Username { get; set; }