Search Results for

    Show / Hide Table of Contents

    Class SimpleSendEmailOptions

    Simplified send email options

    Inheritance
    object
    SimpleSendEmailOptions
    Implements
    IEquatable<SimpleSendEmailOptions>
    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 = "SimpleSendEmailOptions")]
    public class SimpleSendEmailOptions : IEquatable<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
    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 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
    System.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

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

    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.