Table of Contents

Class SmtpCredentials

Namespace
GastroSky.Models
Assembly
GastroSky.Models.dll

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

bool

Host

SMTP host.

public required string Host { get; set; }

Property Value

string

Id

Primary key.

[Key]
public long Id { get; set; }

Property Value

long

Password

SMTP password (in plaintext!).

public required string Password { get; set; }

Property Value

string

Port

Port number to use. SMTP port numbers are typically 25, 465 or 587.

public short Port { get; set; }

Property Value

short

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

string

Username

SMTP username.

public required string Username { get; set; }

Property Value

string