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,
javax.mail.Address[] reply,
String senderName,
String to,
EMailEncrpytionType encryptionType) |
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, wait
buildMimeMessage, buildMimeParts, getMimeMessage
protected 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
Exception
public TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to) throws Exception
Exception
public TextMailData(String subject, String body, String bodyMimeType, String from, String senderName, String to, EMailEncrpytionType encryptionType) throws Exception
Exception
public TextMailData(String subject, String body, String bodyMimeType, String from, javax.mail.Address[] reply, String senderName, String to, EMailEncrpytionType encryptionType) throws Exception
Exception
public String getSubject()
getSubject
in interface IBaseMailData
public javax.mail.Address getFrom()
getFrom
in interface IBaseMailData
public javax.mail.Address[] getReply()
getReply
in interface IBaseMailData
public javax.mail.Address[] getTo()
getTo
in interface IBaseMailData
public void setCc(javax.mail.Address[] cc)
public void setCc(String addresses) throws javax.mail.internet.AddressException
javax.mail.internet.AddressException
public javax.mail.Address[] getCc()
getCc
in interface IBaseMailData
public void setBcc(javax.mail.Address[] bcc)
public void setBcc(String addresses) throws javax.mail.internet.AddressException
javax.mail.internet.AddressException
public javax.mail.Address[] getBcc()
getBcc
in interface IBaseMailData
public void setSendSeparateMails(boolean sendSeparateMails)
public boolean getSendSeparateMails()
IBaseMailData
getSendSeparateMails
in interface IBaseMailData
true
if mails should be separately, false
otherwisepublic void setEncryptionType(EMailEncrpytionType encryptionType)
public EMailEncrpytionType getEncryptionType()
getEncryptionType
in interface IBaseMailData
public List<BodyPartData> getBodyParts()
getBodyParts
in interface IBaseMailData
public List<FilePartData> getFileParts()
getFileParts
in interface IBaseMailData
protected javax.mail.Address[] getAddressesByString(String addressesString) throws javax.mail.internet.AddressException
javax.mail.internet.AddressException
@Deprecated public String getBody()
@Deprecated public String getBodyMimeType()
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.