Interface IEmailManager
- All Superinterfaces:
IDisposable, IEntity
Contains methods to decode the mime of emails.
-
Method Summary
Modifier and TypeMethodDescriptionintcreateEmailMime(byte[] mime) Create an email encoded in MIME format and returns the identifier of the email.intcreateEmailText(String sentFrom, String sendTo, String sendCc, String sendBcc, String subject, BodyType bodyType, String body, Attachment[] attachments) Create an email with attachments.voiddeleteEmail(int emailId) Deletes an email.byte[]generateMimeFromText(String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, BodyType bodyType, String body, Attachment[] attachments) Generates the mime of an email from text.getAttachment(int emailId, int index) Gets the specified attachment of an email stored in the instance.getAttachmentFromMime(byte[] mime, int index) Gets the specified certain attachment of an email.getAttachments(int emailId) Gets the attachments of an email stored in the instance database.getAttachmentsFromMime(byte[] mime) Gets the attachments of an email.getContentFile(int emailId, String contentId) Gets the specified certain content files of an email stored in the instance.getContentFileFromMime(byte[] mime, String contentId) Gets the specified content file of an email.getContentFiles(int emailId) Gets the content files of an email stored in the instance database.getContentFilesFromMime(byte[] mime) Gets the content files of an email.getEmailMessage(int emailId) Gets information about an email stored in the instance database.getEmailMessageFromMime(byte[] mime) Gets information about an email.byte[]getEmailMime(int emailId) Gets the email MIME.The instance.booleanisValidEmailAddress(String emailAddress) Checks for the email address is valid.Methods inherited from interface IDisposable
addDisposedListener, removeDisposedListenerMethods inherited from interface IEntity
getUserContext, setUserContext
-
Method Details
-
createEmailMime
-
createEmailText
int createEmailText(String sentFrom, String sendTo, String sendCc, String sendBcc, String subject, BodyType bodyType, String body, Attachment[] attachments) throws Exception, altitude.integrationServer.exceptions.ISException Create an email with attachments.- Parameters:
sentFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- Subject of the email.bodyType- Type of the body of the email.body- Text body of the email.attachments- Attachments.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
deleteEmail
-
generateMimeFromText
byte[] generateMimeFromText(String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, BodyType bodyType, String body, Attachment[] attachments) throws Exception, altitude.integrationServer.exceptions.ISException Generates the mime of an email from text.- Parameters:
sendFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- Subject of the email.bodyType- Type of the body of the email.body- Text body of the email.attachments- Attachments.- Returns:
- The mime of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAttachment
AttachmentData getAttachment(int emailId, int index) throws Exception, altitude.integrationServer.exceptions.ISException Gets the specified attachment of an email stored in the instance.- Parameters:
emailId- Identitifer of the email.index- Zero-based index of the attachment.- Returns:
- The attachment data.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAttachmentFromMime
AttachmentData getAttachmentFromMime(byte[] mime, int index) throws Exception, altitude.integrationServer.exceptions.ISException Gets the specified certain attachment of an email.- Parameters:
mime- The MIME of the email.index- Zero-based index of the attachment.- Returns:
- The attachment data.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAttachments
AttachmentData[] getAttachments(int emailId) throws Exception, altitude.integrationServer.exceptions.ISException Gets the attachments of an email stored in the instance database.- Parameters:
emailId- The identifier of the email.- Returns:
- An array with the attachments data.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAttachmentsFromMime
AttachmentData[] getAttachmentsFromMime(byte[] mime) throws Exception, altitude.integrationServer.exceptions.ISException Gets the attachments of an email.- Parameters:
mime- MIME of the email.- Returns:
- An array with the attachments data.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContentFile
ContentData getContentFile(int emailId, String contentId) throws Exception, altitude.integrationServer.exceptions.ISException Gets the specified certain content files of an email stored in the instance.- Parameters:
emailId- Identitifer of the email.contentId- Identifier of the content.- Returns:
- The content file data.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContentFileFromMime
ContentData getContentFileFromMime(byte[] mime, String contentId) throws Exception, altitude.integrationServer.exceptions.ISException Gets the specified content file of an email.- Parameters:
mime- The MIME of the email.contentId- Identifier of the content.- Returns:
- The attachment data.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContentFiles
ContentData[] getContentFiles(int emailId) throws Exception, altitude.integrationServer.exceptions.ISException Gets the content files of an email stored in the instance database.- Parameters:
emailId- The identifier of the email.- Returns:
- An array with the attachments data.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getContentFilesFromMime
ContentData[] getContentFilesFromMime(byte[] mime) throws Exception, altitude.integrationServer.exceptions.ISException Gets the content files of an email.- Parameters:
mime- MIME of the email.- Returns:
- An array with the content files data.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getEmailMessage
EmailMessage getEmailMessage(int emailId) throws Exception, altitude.integrationServer.exceptions.ISException Gets information about an email stored in the instance database.- Parameters:
emailId- The identifier of the email.- Returns:
- The data of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getEmailMessageFromMime
EmailMessage getEmailMessageFromMime(byte[] mime) throws Exception, altitude.integrationServer.exceptions.ISException Gets information about an email.- Parameters:
mime- The MIME of the email.- Returns:
- The data of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getEmailMime
-
getInstance
-
isValidEmailAddress
boolean isValidEmailAddress(String emailAddress) throws Exception, altitude.integrationServer.exceptions.ISException Checks for the email address is valid.- Parameters:
emailAddress- The email address to check.- Returns:
trueif the email address is valid.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-