-
public final class EmailEmail entity (also known as EmailDto). When an SMTP email message is received by MailSlurp it is parsed. The body and attachments are written to disk and the fields such as to, from, subject etc are stored in a database. The
bodycontains the email content. If you want the original SMTP message see thegetRawEmailendpoints. The attachments can be fetched using the AttachmentController
-
-
Field Summary
Fields Modifier and Type Field Description private final UUIDidprivate final UUIDuserIdprivate final UUIDinboxIdprivate final List<String>toprivate final OffsetDateTimecreatedAtprivate final OffsetDateTimeupdatedAtprivate final Booleanreadprivate final BooleanteamAccessprivate final UUIDdomainIdprivate final Stringfromprivate final Sendersenderprivate final EmailRecipientsrecipientsprivate final StringreplyToprivate final List<String>ccprivate final List<String>bccprivate final Map<String, String>headersprivate final List<String>attachmentsprivate final Stringsubjectprivate final Stringbodyprivate final StringbodyExcerptprivate final StringbodyMD5Hashprivate final BooleanisHTMLprivate final Stringcharsetprivate final EmailAnalysisanalysisprivate final Booleanhtml
-
Constructor Summary
Constructors Constructor Description Email(UUID id, UUID userId, UUID inboxId, List<String> to, OffsetDateTime createdAt, OffsetDateTime updatedAt, Boolean read, Boolean teamAccess, UUID domainId, String from, Sender sender, EmailRecipients recipients, String replyTo, List<String> cc, List<String> bcc, Map<String, String> headers, List<String> attachments, String subject, String body, String bodyExcerpt, String bodyMD5Hash, Boolean isHTML, String charset, EmailAnalysis analysis, Boolean html)
-
Method Summary
Modifier and Type Method Description final UUIDgetId()final UUIDgetUserId()final UUIDgetInboxId()final List<String>getTo()final OffsetDateTimegetCreatedAt()final OffsetDateTimegetUpdatedAt()final BooleangetRead()final BooleangetTeamAccess()final UUIDgetDomainId()final StringgetFrom()final SendergetSender()final EmailRecipientsgetRecipients()final StringgetReplyTo()final List<String>getCc()final List<String>getBcc()final Map<String, String>getHeaders()final List<String>getAttachments()final StringgetSubject()final StringgetBody()final StringgetBodyExcerpt()final StringgetBodyMD5Hash()final BooleangetIsHTML()final StringgetCharset()final EmailAnalysisgetAnalysis()final BooleangetHtml()-
-
Constructor Detail
-
Email
Email(UUID id, UUID userId, UUID inboxId, List<String> to, OffsetDateTime createdAt, OffsetDateTime updatedAt, Boolean read, Boolean teamAccess, UUID domainId, String from, Sender sender, EmailRecipients recipients, String replyTo, List<String> cc, List<String> bcc, Map<String, String> headers, List<String> attachments, String subject, String body, String bodyExcerpt, String bodyMD5Hash, Boolean isHTML, String charset, EmailAnalysis analysis, Boolean html)
- Parameters:
id- ID of the email entityuserId- ID of user that email belongs toinboxId- ID of the inbox that received the emailto- List ofTorecipient email addresses that the email was addressed to.createdAt- When was the email received by MailSlurpupdatedAt- When was the email last updatedread- Read flag.teamAccess- Can the email be accessed by organization team membersdomainId- ID of the domain that received the emailfrom- Who the email was sent from.replyTo- ThereplyTofield on the received email messagecc- List ofCCrecipients email addresses that the email was addressed to.bcc- List ofBCCrecipients email addresses that the email was addressed to.headers- Collection of SMTP headers attached to emailattachments- List of IDs of attachments found in the email.subject- The subject line of the email message as specified by SMTP subject headerbody- The body of the email message as text parsed from the SMTP message body (does not include attachments).bodyExcerpt- An excerpt of the body of the email message for quick preview .bodyMD5Hash- A hash signature of the email message using MD5.isHTML- Is the email body content type HTML?charset- Detected character set of the email body such as UTF-8
-
-
Method Detail
-
getInboxId
final UUID getInboxId()
-
getCreatedAt
final OffsetDateTime getCreatedAt()
-
getUpdatedAt
final OffsetDateTime getUpdatedAt()
-
getTeamAccess
final Boolean getTeamAccess()
-
getDomainId
final UUID getDomainId()
-
getRecipients
final EmailRecipients getRecipients()
-
getReplyTo
final String getReplyTo()
-
getHeaders
final Map<String, String> getHeaders()
-
getAttachments
final List<String> getAttachments()
-
getSubject
final String getSubject()
-
getBodyExcerpt
final String getBodyExcerpt()
-
getBodyMD5Hash
final String getBodyMD5Hash()
-
getCharset
final String getCharset()
-
getAnalysis
final EmailAnalysis getAnalysis()
-
-
-
-