-
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 EmailAnalysisanalysisprivate final List<String>attachmentsprivate final List<String>bccprivate final Stringbodyprivate final StringbodyExcerptprivate final StringbodyMD5Hashprivate final List<String>ccprivate final Stringcharsetprivate final OffsetDateTimecreatedAtprivate final Stringfromprivate final Map<String, String>headersprivate final UUIDidprivate final UUIDinboxIdprivate final BooleanisHTMLprivate final Booleanreadprivate final EmailRecipientsrecipientsprivate final StringreplyToprivate final Sendersenderprivate final Stringsubjectprivate final BooleanteamAccessprivate final List<String>toprivate final OffsetDateTimeupdatedAtprivate final UUIDuserId
-
Constructor Summary
Constructors Constructor Description Email(EmailAnalysis analysis, List<String> attachments, List<String> bcc, String body, String bodyExcerpt, String bodyMD5Hash, List<String> cc, String charset, OffsetDateTime createdAt, String from, Map<String, String> headers, UUID id, UUID inboxId, Boolean isHTML, Boolean read, EmailRecipients recipients, String replyTo, Sender sender, String subject, Boolean teamAccess, List<String> to, OffsetDateTime updatedAt, UUID userId)
-
Method Summary
Modifier and Type Method Description final EmailAnalysisgetAnalysis()final List<String>getAttachments()final List<String>getBcc()final StringgetBody()final StringgetBodyExcerpt()final StringgetBodyMD5Hash()final List<String>getCc()final StringgetCharset()final OffsetDateTimegetCreatedAt()final StringgetFrom()final Map<String, String>getHeaders()final UUIDgetId()final UUIDgetInboxId()final BooleangetIsHTML()final BooleangetRead()final EmailRecipientsgetRecipients()final StringgetReplyTo()final SendergetSender()final StringgetSubject()final BooleangetTeamAccess()final List<String>getTo()final OffsetDateTimegetUpdatedAt()final UUIDgetUserId()-
-
Constructor Detail
-
Email
Email(EmailAnalysis analysis, List<String> attachments, List<String> bcc, String body, String bodyExcerpt, String bodyMD5Hash, List<String> cc, String charset, OffsetDateTime createdAt, String from, Map<String, String> headers, UUID id, UUID inboxId, Boolean isHTML, Boolean read, EmailRecipients recipients, String replyTo, Sender sender, String subject, Boolean teamAccess, List<String> to, OffsetDateTime updatedAt, UUID userId)
- Parameters:
attachments- List of IDs of attachments found in the email.bcc- List ofBCCrecipients email addresses that the email was addressed to.body- 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.cc- List ofCCrecipients email addresses that the email was addressed to.charset- Detected character set of the email body such as UTF-8createdAt- When was the email received by MailSlurpfrom- Who the email was sent from.headers- Collection of SMTP headers attached to emailid- ID of the email entityinboxId- ID of the inbox that received the emailisHTML- Is the email body HTMLread- Read flag.replyTo- ThereplyTofield on the received email messagesubject- The subject line of the email message as specified by SMTP subject headerteamAccess- Can the email be accessed by organization team membersto- List ofTorecipient email addresses that the email was addressed to.updatedAt- When was the email last updateduserId- ID of user that email belongs to
-
-
Method Detail
-
getAnalysis
final EmailAnalysis getAnalysis()
-
getAttachments
final List<String> getAttachments()
-
getBodyExcerpt
final String getBodyExcerpt()
-
getBodyMD5Hash
final String getBodyMD5Hash()
-
getCharset
final String getCharset()
-
getCreatedAt
final OffsetDateTime getCreatedAt()
-
getHeaders
final Map<String, String> getHeaders()
-
getInboxId
final UUID getInboxId()
-
getRecipients
final EmailRecipients getRecipients()
-
getReplyTo
final String getReplyTo()
-
getSubject
final String getSubject()
-
getTeamAccess
final Boolean getTeamAccess()
-
getUpdatedAt
final OffsetDateTime getUpdatedAt()
-
-
-
-