/
model_email_preview.go
37 lines (36 loc) · 2.43 KB
/
model_email_preview.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* MailSlurp API
*
* MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
*
* API version: 6.5.2
* Contact: contact@mailslurp.dev
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package MailSlurpClient
import (
"time"
)
// EmailPreview Preview of an email message. For full message (including body and attachments) call the `getEmail` or other email endpoints with the provided email ID.
type EmailPreview struct {
// ID of the email entity
Id string `json:"id"`
// ID of the domain that received the email
DomainId *string `json:"domainId,omitempty"`
// The subject line of the email message as specified by SMTP subject header
Subject *string `json:"subject,omitempty"`
// List of `To` recipient email addresses that the email was addressed to. See recipients object for names.
To *[]string `json:"to"`
// Who the email was sent from. An email address - see fromName for the sender name.
From *string `json:"from,omitempty"`
// List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names.
Bcc *[]string `json:"bcc,omitempty"`
// List of `CC` recipients email addresses that the email was addressed to. See recipients object for names.
Cc *[]string `json:"cc,omitempty"`
// When was the email received by MailSlurp
CreatedAt time.Time `json:"createdAt"`
// Read flag. Has the email ever been viewed in the dashboard or fetched via the API with a hydrated body? If so the email is marked as read. Paginated results do not affect read status. Read status is different to email opened event as it depends on your own account accessing the email. Email opened is determined by tracking pixels sent to other uses if enable during sending. You can listened for both email read and email opened events using webhooks.
Read bool `json:"read"`
// List of IDs of attachments found in the email. Use these IDs with the Inbox and Email Controllers to download attachments and attachment meta data such as filesize, name, extension.
Attachments *[]string `json:"attachments,omitempty"`
}