Class TestSmtpServerOptions
TestSmtpServerOptions
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "TestSmtpServerOptions")]
public class TestSmtpServerOptions : IValidatableObject
Constructors
View SourceTestSmtpServerOptions()
Initializes a new instance of the TestSmtpServerOptions class.
Declaration
[JsonConstructor]
protected TestSmtpServerOptions()
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 SourceCaptchaToken
Gets or Sets CaptchaToken
Declaration
[DataMember(Name = "captchaToken", EmitDefaultValue = true)]
public string CaptchaToken { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
From
Gets or Sets From
Declaration
[DataMember(Name = "from", EmitDefaultValue = true)]
public string From { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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 |
Password
Gets or Sets Password
Declaration
[DataMember(Name = "password", EmitDefaultValue = true)]
public string Password { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Port
Gets or Sets Port
Declaration
[DataMember(Name = "port", IsRequired = true, EmitDefaultValue = true)]
public int Port { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
To
Gets or Sets To
Declaration
[DataMember(Name = "to", EmitDefaultValue = true)]
public string To { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UseStartTls
Gets or Sets UseStartTls
Declaration
[DataMember(Name = "useStartTls", IsRequired = true, EmitDefaultValue = true)]
public bool UseStartTls { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Username
Gets or Sets Username
Declaration
[DataMember(Name = "username", EmitDefaultValue = true)]
public string Username { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
| Type | Description |
|---|---|
| string | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | String presentation of the object |