Search Results for

    Show / Hide Table of Contents

    Class SmtpAccessDetails

    Access details for inbox using SMTP

    Inheritance
    object
    SmtpAccessDetails
    Implements
    IEquatable<SmtpAccessDetails>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "SmtpAccessDetails")]
    public class SmtpAccessDetails : IEquatable<SmtpAccessDetails>, IValidatableObject

    Constructors

    View Source

    SmtpAccessDetails()

    Initializes a new instance of the SmtpAccessDetails class.

    Declaration
    [JsonConstructor]
    protected SmtpAccessDetails()
    View Source

    SmtpAccessDetails(string, int, string, string, string, int, string, string, string)

    Initializes a new instance of the SmtpAccessDetails class.

    Declaration
    public SmtpAccessDetails(string secureSmtpServerHost = null, int secureSmtpServerPort = 0, string secureSmtpUsername = null, string secureSmtpPassword = null, string smtpServerHost = null, int smtpServerPort = 0, string smtpUsername = null, string smtpPassword = null, string mailFromDomain = null)
    Parameters
    Type Name Description
    string secureSmtpServerHost

    Secure TLS SMTP server host domain (required).

    int secureSmtpServerPort

    Secure TLS SMTP server host port (required).

    string secureSmtpUsername

    Secure TLS SMTP username for login (required).

    string secureSmtpPassword

    Secure TLS SMTP password for login (required).

    string smtpServerHost

    SMTP server host domain (required).

    int smtpServerPort

    SMTP server host port (required).

    string smtpUsername

    SMTP username for login (required).

    string smtpPassword

    SMTP password for login (required).

    string mailFromDomain

    Mail from domain or SMTP HELO value.

    Properties

    View Source

    MailFromDomain

    Mail from domain or SMTP HELO value

    Declaration
    [DataMember(Name = "mailFromDomain", EmitDefaultValue = true)]
    public string MailFromDomain { get; set; }
    Property Value
    Type Description
    string

    Mail from domain or SMTP HELO value

    View Source

    SecureSmtpPassword

    Secure TLS SMTP password for login

    Declaration
    [DataMember(Name = "secureSmtpPassword", IsRequired = true, EmitDefaultValue = true)]
    public string SecureSmtpPassword { get; set; }
    Property Value
    Type Description
    string

    Secure TLS SMTP password for login

    View Source

    SecureSmtpServerHost

    Secure TLS SMTP server host domain

    Declaration
    [DataMember(Name = "secureSmtpServerHost", IsRequired = true, EmitDefaultValue = true)]
    public string SecureSmtpServerHost { get; set; }
    Property Value
    Type Description
    string

    Secure TLS SMTP server host domain

    View Source

    SecureSmtpServerPort

    Secure TLS SMTP server host port

    Declaration
    [DataMember(Name = "secureSmtpServerPort", IsRequired = true, EmitDefaultValue = true)]
    public int SecureSmtpServerPort { get; set; }
    Property Value
    Type Description
    int

    Secure TLS SMTP server host port

    View Source

    SecureSmtpUsername

    Secure TLS SMTP username for login

    Declaration
    [DataMember(Name = "secureSmtpUsername", IsRequired = true, EmitDefaultValue = true)]
    public string SecureSmtpUsername { get; set; }
    Property Value
    Type Description
    string

    Secure TLS SMTP username for login

    View Source

    SmtpPassword

    SMTP password for login

    Declaration
    [DataMember(Name = "smtpPassword", IsRequired = true, EmitDefaultValue = true)]
    public string SmtpPassword { get; set; }
    Property Value
    Type Description
    string

    SMTP password for login

    View Source

    SmtpServerHost

    SMTP server host domain

    Declaration
    [DataMember(Name = "smtpServerHost", IsRequired = true, EmitDefaultValue = true)]
    public string SmtpServerHost { get; set; }
    Property Value
    Type Description
    string

    SMTP server host domain

    View Source

    SmtpServerPort

    SMTP server host port

    Declaration
    [DataMember(Name = "smtpServerPort", IsRequired = true, EmitDefaultValue = true)]
    public int SmtpServerPort { get; set; }
    Property Value
    Type Description
    int

    SMTP server host port

    View Source

    SmtpUsername

    SMTP username for login

    Declaration
    [DataMember(Name = "smtpUsername", IsRequired = true, EmitDefaultValue = true)]
    public string SmtpUsername { get; set; }
    Property Value
    Type Description
    string

    SMTP username for login

    Methods

    View Source

    Equals(SmtpAccessDetails)

    Returns true if SmtpAccessDetails instances are equal

    Declaration
    public bool Equals(SmtpAccessDetails input)
    Parameters
    Type Name Description
    SmtpAccessDetails input

    Instance of SmtpAccessDetails to be compared

    Returns
    Type Description
    bool

    Boolean

    View Source

    Equals(object)

    Returns true if objects are equal

    Declaration
    public override bool Equals(object input)
    Parameters
    Type Name Description
    object input

    Object to be compared

    Returns
    Type Description
    bool

    Boolean

    Overrides
    Object.Equals(Object)
    View Source

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code

    Overrides
    Object.GetHashCode()
    View Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    string

    JSON string presentation of the object

    View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String presentation of the object

    Overrides
    object.ToString()
    View Source

    Validate(ValidationContext)

    To validate all properties of the instance

    Declaration
    public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
    Parameters
    Type Name Description
    ValidationContext validationContext

    Validation context

    Returns
    Type Description
    IEnumerable<ValidationResult>

    Validation Result

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • View Source
    In This Article
    Back to top See MailSlurp website for more information.