Class SimpleSendEmailOptions
Simplified send email options
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "SimpleSendEmailOptions")]
public class SimpleSendEmailOptions : IValidatableObject
Constructors
View SourceSimpleSendEmailOptions()
Initializes a new instance of the SimpleSendEmailOptions class.
Declaration
[JsonConstructor]
protected SimpleSendEmailOptions()
SimpleSendEmailOptions(Guid?, string, string, string)
Initializes a new instance of the SimpleSendEmailOptions class.
Declaration
public SimpleSendEmailOptions(Guid? senderId = null, string to = null, string body = null, string subject = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid? | senderId | ID of inbox to send from. If null an inbox will be created for sending. |
| string | to | Email address to send to (required). |
| string | body | Body of the email message. Supports HTML. |
| string | subject | Subject line of the email. |
Properties
View SourceBody
Body of the email message. Supports HTML
Declaration
[DataMember(Name = "body", EmitDefaultValue = true)]
public string Body { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Body of the email message. Supports HTML |
SenderId
ID of inbox to send from. If null an inbox will be created for sending
Declaration
[DataMember(Name = "senderId", EmitDefaultValue = true)]
public Guid? SenderId { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid? | ID of inbox to send from. If null an inbox will be created for sending |
Subject
Subject line of the email
Declaration
[DataMember(Name = "subject", EmitDefaultValue = true)]
public string Subject { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Subject line of the email |
To
Email address to send to
Declaration
[DataMember(Name = "to", IsRequired = true, EmitDefaultValue = true)]
public string To { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Email address to send to |
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 |