public class TextMailData extends Object implements IBaseMailData
| Modifier and Type | Field and Description |
|---|---|
protected javax.mail.Address[] |
bcc |
protected List<BodyPartData> |
bodyParts |
protected javax.mail.Address[] |
cc |
protected EMailEncrpytionType |
encryptionType |
protected boolean |
forceEncryption |
protected javax.mail.Address |
from |
protected javax.mail.Address[] |
reply |
protected boolean |
sendSeparateMails |
protected String |
subject |
protected javax.mail.Address[] |
to |
ADDRESS_SPLITTER| Constructor and Description |
|---|
TextMailData(String subject,
String body,
String bodyMimeType,
javax.mail.Address from,
javax.mail.Address[] reply,
javax.mail.Address[] to) |
TextMailData(String subject,
String body,
String bodyMimeType,
String from,
String to) |
TextMailData(String subject,
String body,
String bodyMimeType,
String from,
String senderName,
String to) |
TextMailData(String subject,
String body,
String bodyMimeType,
String from,
String senderName,
String to,
EMailEncrpytionType encryptionType) |
| Modifier and Type | Method and Description |
|---|---|
protected javax.mail.Address[] |
getAddressesByString(String addressesString) |
javax.mail.Address[] |
getBcc() |
String |
getBody()
Deprecated.
|
String |
getBodyMimeType()
Deprecated.
|
List<BodyPartData> |
getBodyParts() |
javax.mail.Address[] |
getCc() |
EMailEncrpytionType |
getEncryptionType() |
List<FilePartData> |
getFileParts() |
javax.mail.Address |
getFrom() |
javax.mail.Address[] |
getReply() |
boolean |
getSendSeparateMails()
Flag to indicate that mails should be send separately to the to-recipient.
|
String |
getSubject() |
javax.mail.Address[] |
getTo() |
void |
setBcc(javax.mail.Address[] bcc) |
void |
setBcc(String addresses) |
void |
setCc(javax.mail.Address[] cc) |
void |
setCc(String addresses) |
void |
setEncryptionType(EMailEncrpytionType encryptionType) |
void |
setSendSeparateMails(boolean sendSeparateMails) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildMimeMessage, buildMimeParts, getMimeMessageprotected final String subject
protected final javax.mail.Address[] to
protected final javax.mail.Address[] reply
protected javax.mail.Address[] cc
protected javax.mail.Address[] bcc
protected final javax.mail.Address from
protected boolean sendSeparateMails
protected boolean forceEncryption
protected EMailEncrpytionType encryptionType
protected List<BodyPartData> bodyParts
public TextMailData(String subject, String body, String bodyMimeType, String from, String to) throws Exception
Exceptionpublic TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to) throws Exception
Exceptionpublic TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to, EMailEncrpytionType encryptionType) throws Exception
Exceptionpublic String getSubject()
getSubject in interface IBaseMailDatapublic javax.mail.Address getFrom()
getFrom in interface IBaseMailDatapublic javax.mail.Address[] getReply()
getReply in interface IBaseMailDatapublic javax.mail.Address[] getTo()
getTo in interface IBaseMailDatapublic void setCc(javax.mail.Address[] cc)
public void setCc(String addresses) throws javax.mail.internet.AddressException
javax.mail.internet.AddressExceptionpublic javax.mail.Address[] getCc()
getCc in interface IBaseMailDatapublic void setBcc(javax.mail.Address[] bcc)
public void setBcc(String addresses) throws javax.mail.internet.AddressException
javax.mail.internet.AddressExceptionpublic javax.mail.Address[] getBcc()
getBcc in interface IBaseMailDatapublic void setSendSeparateMails(boolean sendSeparateMails)
public boolean getSendSeparateMails()
IBaseMailDatagetSendSeparateMails in interface IBaseMailDatatrue if mails should be separately, false otherwisepublic void setEncryptionType(EMailEncrpytionType encryptionType)
public EMailEncrpytionType getEncryptionType()
getEncryptionType in interface IBaseMailDatapublic List<BodyPartData> getBodyParts()
getBodyParts in interface IBaseMailDatapublic List<FilePartData> getFileParts()
getFileParts in interface IBaseMailDataprotected javax.mail.Address[] getAddressesByString(String addressesString) throws javax.mail.internet.AddressException
javax.mail.internet.AddressException@Deprecated public String getBody()
@Deprecated public String getBodyMimeType()
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.