Class SimpleSendEmailOptions
Simplified send email options
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "SimpleSendEmailOptions")]
public class SimpleSendEmailOptions : IEquatable<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 |
---|---|---|
System.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 |
---|---|
System.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 SourceEquals(SimpleSendEmailOptions)
Returns true if SimpleSendEmailOptions instances are equal
Declaration
public bool Equals(SimpleSendEmailOptions input)
Parameters
Type | Name | Description |
---|---|---|
SimpleSendEmailOptions | input | Instance of SimpleSendEmailOptions to be compared |
Returns
Type | Description |
---|---|
bool | Boolean |
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
View SourceGetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Hash code |
Overrides
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 |
Overrides
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 |