Search Results for

    Show / Hide Table of Contents

    Class SimpleSendEmailOptions

    Simplified send email options

    Inheritance
    object
    SimpleSendEmailOptions
    Implements
    IValidatableObject
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "SimpleSendEmailOptions")]
    public class SimpleSendEmailOptions : IValidatableObject

    Constructors

    View Source

    SimpleSendEmailOptions()

    Initializes a new instance of the SimpleSendEmailOptions class.

    Declaration
    [JsonConstructor]
    protected SimpleSendEmailOptions()
    View Source

    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 Source

    Body

    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

    View Source

    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

    View Source

    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

    View Source

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

    Implements

    IValidatableObject
    • View Source
    In this article
    Back to top See MailSlurp website for more information.