Search Results for

    Show / Hide Table of Contents

    Class ReplyToEmailOptions

    Options for replying to email with API

    Inheritance
    object
    ReplyToEmailOptions
    Implements
    IEquatable<ReplyToEmailOptions>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "ReplyToEmailOptions")]
    public class ReplyToEmailOptions : IEquatable<ReplyToEmailOptions>, IValidatableObject

    Constructors

    View Source

    ReplyToEmailOptions()

    Initializes a new instance of the ReplyToEmailOptions class.

    Declaration
    [JsonConstructor]
    protected ReplyToEmailOptions()
    View Source

    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 Source

    Attachments

    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.

    View Source

    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

    View Source

    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

    View Source

    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

    View Source

    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

    View Source

    Html

    Gets or Sets Html

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

    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

    View Source

    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

    View Source

    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

    View Source

    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.

    View Source

    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

    View Source

    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 Source

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

    View Source

    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
    Object.Equals(Object)
    View Source

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code

    Overrides
    Object.GetHashCode()
    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()
    View Source

    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

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • View Source
    In This Article
    Back to top See MailSlurp website for more information.