Class HtmlMailMessage
java.lang.Object
com.aquima.interactions.foundation.connectivity.impl.MailMessage
com.aquima.interactions.foundation.connectivity.impl.HtmlMailMessage
- All Implemented Interfaces:
IMailMessage
This class can be used to create an html email message that can be send via a IMailConnection.
- Since:
- 6.4
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionHtmlMailMessage
(IMailAddress sender, IMailAddress[] recipients, IMailAddress[] carbonCopyRecipients, IMailAddress[] blindCarbonCopyRecipients, IMailMessageAttachment[] attachments, String subject, String body) Create a fully specified html email message.HtmlMailMessage
(IMailAddress sender, IMailAddress recipient, String subject, String body) Create a basic html 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
-
HtmlMailMessage
Create a basic html 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 containing html, may be null
-
HtmlMailMessage
public HtmlMailMessage(IMailAddress sender, IMailAddress[] recipients, IMailAddress[] carbonCopyRecipients, IMailAddress[] blindCarbonCopyRecipients, IMailMessageAttachment[] attachments, String subject, String body) Create a fully specified html 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 containing html, may be null
-
-
Method Details
-
getContentType
Description copied from interface:IMailMessage
This method returns the Content-Type header for the specific type of message.
-