Class TextMailMessage
java.lang.Object
com.aquima.interactions.foundation.connectivity.impl.MailMessage
com.aquima.interactions.foundation.connectivity.impl.TextMailMessage
- All Implemented Interfaces:
IMailMessage
This class can be used to create an plain text email message that can be send via a IMailConnection.
- Since:
- 6.4
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionTextMailMessage
(IMailAddress sender, IMailAddress[] recipients, IMailAddress[] carbonCopyRecipients, IMailAddress[] blindCarbonCopyRecipients, IMailMessageAttachment[] attachments, String subject, String body) Create a fully specified plain text email message.TextMailMessage
(IMailAddress sender, IMailAddress recipient, String subject, String body) Create a basic plain text email message with a sender, one recipient, a subject and a body. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the Content-Type header for the specific type of message.Methods inherited from class com.aquima.interactions.foundation.connectivity.impl.MailMessage
getAttachments, getBcc, getBody, getCc, getFrom, getSubject, getTo
-
Constructor Details
-
TextMailMessage
Create a basic plain text email message with a sender, one recipient, a subject and a body.- Parameters:
sender
- The sender, may not be nullrecipient
- The recipient, may not be nullsubject
- The subject, may be nullbody
- The body of the message, may be null
-
TextMailMessage
public TextMailMessage(IMailAddress sender, IMailAddress[] recipients, IMailAddress[] carbonCopyRecipients, IMailAddress[] blindCarbonCopyRecipients, IMailMessageAttachment[] attachments, String subject, String body) Create a fully specified plain text email message. Note: the message should contain at least one recipient (to/cc/bcc)- Parameters:
sender
- The sender, may not be nullrecipients
- The recipients, may be nullcarbonCopyRecipients
- The cc recipients, may be nullblindCarbonCopyRecipients
- The bcc recipients, may be nullattachments
- The mail message attachments, may be nullsubject
- The subject, may be nullbody
- The body of the message, may be null
-
-
Method Details
-
getContentType
Description copied from interface:IMailMessage
This method returns the Content-Type header for the specific type of message.
-