Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

1.5 KB
Raw Blame
namespace Grand.Domain.Messages;

/// <summary>
///     Represents an email account
/// </summary>
public class EmailAccount : BaseEntity
{
    /// <summary>
    ///     Gets or sets an email address
    /// </summary>
    public string Email { get; set; }

    /// <summary>
    ///     Gets or sets an email display name
    /// </summary>
    public string DisplayName { get; set; }

    /// <summary>
    ///     Gets or sets an email host
    /// </summary>
    public string Host { get; set; }

    /// <summary>
    ///     Gets or sets an email port
    /// </summary>
    public int Port { get; set; }

    /// <summary>
    ///     Gets or sets an email user name
    /// </summary>
    public string Username { get; set; }

    /// <summary>
    ///     Gets or sets an email password
    /// </summary>
    public string Password { get; set; }

    /// <summary>
    ///     Gets or sets a value that the remote certificate is invalid according to the validation procedure.
    ///     https://github.com/jstedfast/MailKit/blob/master/FAQ.md#InvalidSslCertificate
    /// </summary>
    public bool UseServerCertificateValidation { get; set; }

    /// <summary>
    ///     Provides a way of specifying the SSL and/or TLS encryption that should be used for a connection
    /// </summary>
    public int SecureSocketOptionsId { get; set; }

    /// <summary>
    ///     Gets or sets the store identifier this email account belongs to.
    ///     An empty string means this is a global/shared email account.
    /// </summary>
    public string StoreId { get; set; }
}