Java Documentation

Send and receive emails in Java applications and tests. Create real email addresses on demand.

Email

Representation of an email received by an inbox. Use the ID to access more properties of an email using the EmailController endpoints.

Properties

Name Type Description Notes
analysis EmailAnalysis [optional]
attachments List<String> 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. [optional]
bcc List<String> List of `BCC` recipients email was addressed to [optional]
body String The body of the email message [optional]
cc List<String> List of `CC` recipients email was addressed to [optional]
charset String Detected character set of the email body such as UTF-8 [optional]
createdAt OffsetDateTime When was the email received by MailSlurp [optional]
from String Who was the email sent from [optional]
headers Map<String, String> [optional]
id UUID ID of the email [optional]
inboxId UUID ID of the inbox that received the email [optional]
isHTML Boolean Was HTML sent in the email body [optional]
read Boolean Has the email been viewed ever [optional]
subject String The subject line of the email message [optional]
to List<String> List of `To` recipients email was addressed to [optional]
updatedAt OffsetDateTime When was the email last updated [optional]
userId UUID ID of user that email belongs [optional]