Class SentEmailDto
Sent email details
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "SentEmailDto")]
public class SentEmailDto : IValidatableObject
Constructors
View SourceSentEmailDto()
Initializes a new instance of the SentEmailDto class.
Declaration
[JsonConstructor]
protected SentEmailDto()
SentEmailDto(Guid, Guid, Guid, Guid?, List<string>, string, Sender, EmailRecipients, string, List<string>, List<string>, List<string>, string, string, string, List<Guid?>, Guid?, string, bool?, DateTime, DateTime, List<Guid?>, string, List<string>, bool?, Guid?, Dictionary<string, object>, Dictionary<string, string>, Guid?, string, string, string, bool?, long?, bool)
Initializes a new instance of the SentEmailDto class.
Declaration
public SentEmailDto(Guid id = default, Guid userId = default, Guid inboxId = default, Guid? domainId = null, List<string> to = null, string from = null, Sender sender = null, EmailRecipients recipients = null, string replyTo = null, List<string> cc = null, List<string> bcc = null, List<string> attachments = null, string subject = null, string bodyMD5Hash = null, string body = null, List<Guid?> toContacts = null, Guid? toGroup = null, string charset = null, bool? isHTML = null, DateTime sentAt = default, DateTime createdAt = default, List<Guid?> pixelIds = null, string messageId = null, List<string> messageIds = null, bool? virtualSend = null, Guid? templateId = null, Dictionary<string, object> templateVariables = null, Dictionary<string, string> headers = null, Guid? threadId = null, string bodyExcerpt = null, string textExcerpt = null, string inReplyTo = null, bool? favourite = null, long? sizeBytes = null, bool html = false)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | ID of sent email (required). |
Guid | userId | User ID (required). |
Guid | inboxId | Inbox ID email was sent from (required). |
Guid? | domainId | Domain ID. |
List<string> | to | Recipients email was sent to. |
string | from | Sent from address. |
Sender | sender | sender. |
EmailRecipients | recipients | recipients. |
string | replyTo | replyTo. |
List<string> | cc | cc. |
List<string> | bcc | bcc. |
List<string> | attachments | Array of IDs of attachments that were sent with this email. |
string | subject | subject. |
string | bodyMD5Hash | MD5 Hash. |
string | body | Sent email body. |
List<Guid?> | toContacts | toContacts. |
Guid? | toGroup | toGroup. |
string | charset | charset. |
bool? | isHTML | isHTML. |
DateTime | sentAt | sentAt (required). |
DateTime | createdAt | createdAt (required). |
List<Guid?> | pixelIds | pixelIds. |
string | messageId | RFC 5322 Message-ID header value without angle brackets.. |
List<string> | messageIds | messageIds. |
bool? | virtualSend | virtualSend. |
Guid? | templateId | templateId. |
Dictionary<string, object> | templateVariables | templateVariables. |
Dictionary<string, string> | headers | headers. |
Guid? | threadId | MailSlurp thread ID for email chain that enables lookup for In-Reply-To and References fields.. |
string | bodyExcerpt | An excerpt of the body of the email message for quick preview. Takes HTML content part if exists falls back to TEXT content part if not. |
string | textExcerpt | An excerpt of the body of the email message for quick preview. Takes TEXT content part if exists. |
string | inReplyTo | Parsed value of In-Reply-To header. A Message-ID in a thread.. |
bool? | favourite | Is email favourited. |
long? | sizeBytes | Size of raw email message in bytes. |
bool | html | html. |
Properties
View SourceAttachments
Array of IDs of attachments that were sent with this email
Declaration
[DataMember(Name = "attachments", EmitDefaultValue = true)]
public List<string> Attachments { get; set; }
Property Value
Type | Description |
---|---|
List<string> | Array of IDs of attachments that were sent with this email |
Bcc
Gets or Sets Bcc
Declaration
[DataMember(Name = "bcc", EmitDefaultValue = true)]
public List<string> Bcc { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
Body
Sent email body
Declaration
[DataMember(Name = "body", EmitDefaultValue = true)]
public string Body { get; set; }
Property Value
Type | Description |
---|---|
string | Sent email body |
BodyExcerpt
An excerpt of the body of the email message for quick preview. Takes HTML content part if exists falls back to TEXT content part if not
Declaration
[DataMember(Name = "bodyExcerpt", EmitDefaultValue = true)]
public string BodyExcerpt { get; set; }
Property Value
Type | Description |
---|---|
string | An excerpt of the body of the email message for quick preview. Takes HTML content part if exists falls back to TEXT content part if not |
BodyMD5Hash
MD5 Hash
Declaration
[DataMember(Name = "bodyMD5Hash", EmitDefaultValue = true)]
public string BodyMD5Hash { get; set; }
Property Value
Type | Description |
---|---|
string | MD5 Hash |
Cc
Gets or Sets Cc
Declaration
[DataMember(Name = "cc", EmitDefaultValue = true)]
public List<string> Cc { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
Charset
Gets or Sets Charset
Declaration
[DataMember(Name = "charset", EmitDefaultValue = true)]
public string Charset { get; set; }
Property Value
Type | Description |
---|---|
string |
CreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
DomainId
Domain ID
Declaration
[DataMember(Name = "domainId", EmitDefaultValue = true)]
public Guid? DomainId { get; set; }
Property Value
Type | Description |
---|---|
Guid? | Domain ID |
Favourite
Is email favourited
Declaration
[DataMember(Name = "favourite", EmitDefaultValue = true)]
public bool? Favourite { get; set; }
Property Value
Type | Description |
---|---|
bool? | Is email favourited |
From
Sent from address
Declaration
[DataMember(Name = "from", EmitDefaultValue = true)]
public string From { get; set; }
Property Value
Type | Description |
---|---|
string | Sent from address |
Headers
Gets or Sets Headers
Declaration
[DataMember(Name = "headers", EmitDefaultValue = true)]
public Dictionary<string, string> Headers { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
Html
Gets or Sets Html
Declaration
[DataMember(Name = "html", EmitDefaultValue = true)]
public bool Html { get; set; }
Property Value
Type | Description |
---|---|
bool |
Id
ID of sent email
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
Guid | ID of sent email |
InReplyTo
Parsed value of In-Reply-To header. A Message-ID in a thread.
Declaration
[DataMember(Name = "inReplyTo", EmitDefaultValue = true)]
public string InReplyTo { get; set; }
Property Value
Type | Description |
---|---|
string | Parsed value of In-Reply-To header. A Message-ID in a thread. |
InboxId
Inbox ID email was sent from
Declaration
[DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)]
public Guid InboxId { get; set; }
Property Value
Type | Description |
---|---|
Guid | Inbox ID email was sent from |
IsHTML
Gets or Sets IsHTML
Declaration
[DataMember(Name = "isHTML", EmitDefaultValue = true)]
public bool? IsHTML { get; set; }
Property Value
Type | Description |
---|---|
bool? |
MessageId
RFC 5322 Message-ID header value without angle brackets.
Declaration
[DataMember(Name = "messageId", EmitDefaultValue = true)]
public string MessageId { get; set; }
Property Value
Type | Description |
---|---|
string | RFC 5322 Message-ID header value without angle brackets. |
MessageIds
Gets or Sets MessageIds
Declaration
[DataMember(Name = "messageIds", EmitDefaultValue = true)]
public List<string> MessageIds { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
PixelIds
Gets or Sets PixelIds
Declaration
[DataMember(Name = "pixelIds", EmitDefaultValue = true)]
public List<Guid?> PixelIds { get; set; }
Property Value
Type | Description |
---|---|
List<Guid?> |
Recipients
Gets or Sets Recipients
Declaration
[DataMember(Name = "recipients", EmitDefaultValue = true)]
public EmailRecipients Recipients { get; set; }
Property Value
Type | Description |
---|---|
EmailRecipients |
ReplyTo
Gets or Sets ReplyTo
Declaration
[DataMember(Name = "replyTo", EmitDefaultValue = true)]
public string ReplyTo { get; set; }
Property Value
Type | Description |
---|---|
string |
Sender
Gets or Sets Sender
Declaration
[DataMember(Name = "sender", EmitDefaultValue = true)]
public Sender Sender { get; set; }
Property Value
Type | Description |
---|---|
Sender |
SentAt
Gets or Sets SentAt
Declaration
[DataMember(Name = "sentAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime SentAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
SizeBytes
Size of raw email message in bytes
Declaration
[DataMember(Name = "sizeBytes", EmitDefaultValue = true)]
public long? SizeBytes { get; set; }
Property Value
Type | Description |
---|---|
long? | Size of raw email message in bytes |
Subject
Gets or Sets Subject
Declaration
[DataMember(Name = "subject", EmitDefaultValue = true)]
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
string |
TemplateId
Gets or Sets TemplateId
Declaration
[DataMember(Name = "templateId", EmitDefaultValue = true)]
public Guid? TemplateId { get; set; }
Property Value
Type | Description |
---|---|
Guid? |
TemplateVariables
Gets or Sets TemplateVariables
Declaration
[DataMember(Name = "templateVariables", EmitDefaultValue = true)]
public Dictionary<string, object> TemplateVariables { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, object> |
TextExcerpt
An excerpt of the body of the email message for quick preview. Takes TEXT content part if exists
Declaration
[DataMember(Name = "textExcerpt", EmitDefaultValue = true)]
public string TextExcerpt { get; set; }
Property Value
Type | Description |
---|---|
string | An excerpt of the body of the email message for quick preview. Takes TEXT content part if exists |
ThreadId
MailSlurp thread ID for email chain that enables lookup for In-Reply-To and References fields.
Declaration
[DataMember(Name = "threadId", EmitDefaultValue = true)]
public Guid? ThreadId { get; set; }
Property Value
Type | Description |
---|---|
Guid? | MailSlurp thread ID for email chain that enables lookup for In-Reply-To and References fields. |
To
Recipients email was sent to
Declaration
[DataMember(Name = "to", EmitDefaultValue = true)]
public List<string> To { get; set; }
Property Value
Type | Description |
---|---|
List<string> | Recipients email was sent to |
ToContacts
Gets or Sets ToContacts
Declaration
[DataMember(Name = "toContacts", EmitDefaultValue = true)]
public List<Guid?> ToContacts { get; set; }
Property Value
Type | Description |
---|---|
List<Guid?> |
ToGroup
Gets or Sets ToGroup
Declaration
[DataMember(Name = "toGroup", EmitDefaultValue = true)]
public Guid? ToGroup { get; set; }
Property Value
Type | Description |
---|---|
Guid? |
UserId
User ID
Declaration
[DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)]
public Guid UserId { get; set; }
Property Value
Type | Description |
---|---|
Guid | User ID |
VirtualSend
Gets or Sets VirtualSend
Declaration
[DataMember(Name = "virtualSend", EmitDefaultValue = true)]
public bool? VirtualSend { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
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 |