Search Results for

    Show / Hide Table of Contents

    Class TestSmtpServerOptions

    TestSmtpServerOptions

    Inheritance
    object
    TestSmtpServerOptions
    Implements
    IValidatableObject
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "TestSmtpServerOptions")]
    public class TestSmtpServerOptions : IValidatableObject

    Constructors

    View Source

    TestSmtpServerOptions()

    Initializes a new instance of the TestSmtpServerOptions class.

    Declaration
    [JsonConstructor]
    protected TestSmtpServerOptions()
    View Source

    TestSmtpServerOptions(string, int, bool, string, string, string, string, string)

    Initializes a new instance of the TestSmtpServerOptions class.

    Declaration
    public TestSmtpServerOptions(string host = null, int port = 0, bool useStartTls = false, string username = null, string password = null, string from = null, string to = null, string captchaToken = null)
    Parameters
    Type Name Description
    string host

    SMTP host name or IP address (required).

    int port

    port (required).

    bool useStartTls

    useStartTls (required).

    string username

    username.

    string password

    password.

    string from

    from.

    string to

    to.

    string captchaToken

    captchaToken.

    Properties

    View Source

    CaptchaToken

    Gets or Sets CaptchaToken

    Declaration
    [DataMember(Name = "captchaToken", EmitDefaultValue = true)]
    public string CaptchaToken { get; set; }
    Property Value
    Type Description
    string
    View Source

    From

    Gets or Sets From

    Declaration
    [DataMember(Name = "from", EmitDefaultValue = true)]
    public string From { get; set; }
    Property Value
    Type Description
    string
    View Source

    Host

    SMTP host name or IP address

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

    SMTP host name or IP address

    View Source

    Password

    Gets or Sets Password

    Declaration
    [DataMember(Name = "password", EmitDefaultValue = true)]
    public string Password { get; set; }
    Property Value
    Type Description
    string
    View Source

    Port

    Gets or Sets Port

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

    To

    Gets or Sets To

    Declaration
    [DataMember(Name = "to", EmitDefaultValue = true)]
    public string To { get; set; }
    Property Value
    Type Description
    string
    View Source

    UseStartTls

    Gets or Sets UseStartTls

    Declaration
    [DataMember(Name = "useStartTls", IsRequired = true, EmitDefaultValue = true)]
    public bool UseStartTls { get; set; }
    Property Value
    Type Description
    bool
    View Source

    Username

    Gets or Sets Username

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

    Methods

    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()

    Implements

    IValidatableObject
    • View Source
    In this article
    Back to top See MailSlurp website for more information.