Package com.mailosaur
Class Files
java.lang.Object
com.mailosaur.Files
File operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getAttachment(String attachmentId) Downloads a single attachment.byte[]Downloads an EML file representing the specified email.byte[]getPreview(String previewId) Downloads a screenshot of your email rendered in a real email client.
-
Constructor Details
-
Files
-
-
Method Details
-
getAttachment
Downloads a single attachment.- Parameters:
attachmentId- The identifier for the required attachment.- Returns:
- The byte array if successful.
- Throws:
MailosaurException- Thrown if Mailosaur responds with an error.IOException- Unexpected exception.
-
getEmail
Downloads an EML file representing the specified email.- Parameters:
messageId- The identifier for the required message.- Returns:
- The byte array if successful.
- Throws:
MailosaurException- Thrown if Mailosaur responds with an error.IOException- Unexpected exception.
-
getPreview
Downloads a screenshot of your email rendered in a real email client. Simply supply the unique identifier for the required preview.- Parameters:
previewId- The identifier of the email preview to be downloaded.- Returns:
- The byte array if successful.
- Throws:
MailosaurException- Thrown if Mailosaur responds with an error.IOException- Unexpected exception.
-