Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

EmailAccount.cs

namespace Nop.Core.Domain.Messages;

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

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

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

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

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

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

    /// 
    /// Gets or sets a value that controls whether the SmtpClient uses Secure Sockets Layer (SSL) to encrypt the connection
    /// 
    public bool EnableSsl { get; set; }

    /// 
    /// Gets or sets the maximum number of emails sent at one time
    /// 
    public int MaxNumberOfEmails { get; set; }

    /// 
    /// Gets or sets an identifier of the email authentication method
    /// 
    public int EmailAuthenticationMethodId { get; set; }

    /// 
    /// Gets or sets an authentication method
    /// 
    public EmailAuthenticationMethod EmailAuthenticationMethod
    {
        get => (EmailAuthenticationMethod)EmailAuthenticationMethodId;
        set => EmailAuthenticationMethodId = (int)value;
    }

    /// 
    /// Gets or sets the client identifier (OAuth2)
    /// 
    public string ClientId { get; set; }

    /// 
    /// Gets or sets the client Secret
    /// 
    public string ClientSecret { get; set; }

    /// 
    /// Gets or sets the tenant ID of the organization from which the application will let users sign-in
    /// 
    public string TenantId { get; set; }
}