Class ReplyToEmailOptions
Options for replying to email with API
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "ReplyToEmailOptions")]
public class ReplyToEmailOptions : IEquatable<ReplyToEmailOptions>, IValidatableObject
Constructors
View SourceReplyToEmailOptions()
Initializes a new instance of the ReplyToEmailOptions class.
Declaration
[JsonConstructor]
protected ReplyToEmailOptions()
ReplyToEmailOptions(string, bool, string, string, Dictionary<string, string>, string, List<string>, Dictionary<string, object>, Guid?, SendStrategyEnum?, bool?, bool)
Initializes a new instance of the ReplyToEmailOptions class.
Declaration
public ReplyToEmailOptions(string body = null, bool isHTML = false, string from = null, string replyTo = null, Dictionary<string, string> customHeaders = null, string charset = null, List<string> attachments = null, Dictionary<string, object> templateVariables = null, Guid? template = null, ReplyToEmailOptions.SendStrategyEnum? sendStrategy = null, bool? useInboxName = null, bool html = false)
Parameters
Type | Name | Description |
---|---|---|
string | body | Body of the reply email you want to send (required). |
bool | isHTML | Is the reply HTML (required). |
string | from | The from header that should be used. Optional. |
string | replyTo | The replyTo header that should be used. Optional. |
Dictionary<string, string> | customHeaders | Optional custom headers. |
string | charset | The charset that your message should be sent with. Optional. Default is UTF-8. |
System.Collections.Generic.List<T><string> | attachments | List of uploaded attachments to send with the reply. Optional.. |
Dictionary<string, object> | templateVariables | Template variables if using a template. |
System.Guid? | template | Template ID to use instead of body. Will use template variable map to fill defined variable slots.. |
ReplyToEmailOptions.SendStrategyEnum? | sendStrategy | How an email should be sent based on its recipients. |
bool? | useInboxName | Optionally use inbox name as display name for sender email address. |
bool | html | html. |
Properties
View SourceAttachments
List of uploaded attachments to send with the reply. Optional.
Declaration
[DataMember(Name = "attachments", EmitDefaultValue = true)]
public List<string> Attachments { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> | List of uploaded attachments to send with the reply. Optional. |
Body
Body of the reply email you want to send
Declaration
[DataMember(Name = "body", IsRequired = true, EmitDefaultValue = true)]
public string Body { get; set; }
Property Value
Type | Description |
---|---|
string | Body of the reply email you want to send |
Charset
The charset that your message should be sent with. Optional. Default is UTF-8
Declaration
[DataMember(Name = "charset", EmitDefaultValue = true)]
public string Charset { get; set; }
Property Value
Type | Description |
---|---|
string | The charset that your message should be sent with. Optional. Default is UTF-8 |
CustomHeaders
Optional custom headers
Declaration
[DataMember(Name = "customHeaders", EmitDefaultValue = true)]
public Dictionary<string, string> CustomHeaders { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | Optional custom headers |
From
The from header that should be used. Optional
Declaration
[DataMember(Name = "from", EmitDefaultValue = true)]
public string From { get; set; }
Property Value
Type | Description |
---|---|
string | The from header that should be used. Optional |
Html
Gets or Sets Html
Declaration
[DataMember(Name = "html", EmitDefaultValue = true)]
public bool Html { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsHTML
Is the reply HTML
Declaration
[DataMember(Name = "isHTML", IsRequired = true, EmitDefaultValue = true)]
public bool IsHTML { get; set; }
Property Value
Type | Description |
---|---|
bool | Is the reply HTML |
ReplyTo
The replyTo header that should be used. Optional
Declaration
[DataMember(Name = "replyTo", EmitDefaultValue = true)]
public string ReplyTo { get; set; }
Property Value
Type | Description |
---|---|
string | The replyTo header that should be used. Optional |
SendStrategy
How an email should be sent based on its recipients
Declaration
[DataMember(Name = "sendStrategy", EmitDefaultValue = true)]
public ReplyToEmailOptions.SendStrategyEnum? SendStrategy { get; set; }
Property Value
Type | Description |
---|---|
ReplyToEmailOptions.SendStrategyEnum? | How an email should be sent based on its recipients |
Template
Template ID to use instead of body. Will use template variable map to fill defined variable slots.
Declaration
[DataMember(Name = "template", EmitDefaultValue = true)]
public Guid? Template { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? | Template ID to use instead of body. Will use template variable map to fill defined variable slots. |
TemplateVariables
Template variables if using a template
Declaration
[DataMember(Name = "templateVariables", EmitDefaultValue = true)]
public Dictionary<string, object> TemplateVariables { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, object> | Template variables if using a template |
UseInboxName
Optionally use inbox name as display name for sender email address
Declaration
[DataMember(Name = "useInboxName", EmitDefaultValue = true)]
public bool? UseInboxName { get; set; }
Property Value
Type | Description |
---|---|
bool? | Optionally use inbox name as display name for sender email address |
Methods
View SourceEquals(ReplyToEmailOptions)
Returns true if ReplyToEmailOptions instances are equal
Declaration
public bool Equals(ReplyToEmailOptions input)
Parameters
Type | Name | Description |
---|---|---|
ReplyToEmailOptions | input | Instance of ReplyToEmailOptions 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 |