Class TextMailMessage
- java.lang.Object
-
- com.aquima.interactions.foundation.connectivity.impl.MailMessage
-
- com.aquima.interactions.foundation.connectivity.impl.TextMailMessage
-
- All Implemented Interfaces:
IMailMessage
public class TextMailMessage extends MailMessage
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
Constructors Constructor Description TextMailMessage(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
This 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 Detail
-
TextMailMessage
public 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.- 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 Detail
-
getContentType
public String getContentType()
Description copied from interface:IMailMessage
This method returns the Content-Type header for the specific type of message.
-
-