-
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 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 StringreplyToprivate 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 bodyMD5Hash, List<String> cc, String charset, OffsetDateTime createdAt, String from, Map<String, String> headers, UUID id, UUID inboxId, Boolean isHTML, Boolean read, String replyTo, 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 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 StringgetReplyTo()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 bodyMD5Hash, List<String> cc, String charset, OffsetDateTime createdAt, String from, Map<String, String> headers, UUID id, UUID inboxId, Boolean isHTML, Boolean read, String replyTo, 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 was addressed tobody- The body of the email messagebodyMD5Hash- A hash signature of the email messagecc- List ofCCrecipients email was addressed tocharset- Detected character set of the email body such as UTF-8createdAt- When was the email received by MailSlurpfrom- Who the email was sent fromheaders- 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 messageteamAccess- Can the email be accessed by organization team membersto- List ofTorecipients that email was addressed toupdatedAt- When was the email last updateduserId- ID of user that email belongs to
-
-
Method Detail
-
getAnalysis
final EmailAnalysis getAnalysis()
-
getAttachments
final List<String> getAttachments()
-
getBodyMD5Hash
final String getBodyMD5Hash()
-
getCharset
final String getCharset()
-
getCreatedAt
final OffsetDateTime getCreatedAt()
-
getHeaders
final Map<String, String> getHeaders()
-
getInboxId
final UUID getInboxId()
-
getReplyTo
final String getReplyTo()
-
getSubject
final String getSubject()
-
getTeamAccess
final Boolean getTeamAccess()
-
getUpdatedAt
final OffsetDateTime getUpdatedAt()
-
-
-
-