public class TextMailData extends Object implements IBaseMailData
Modifier and Type | Field and Description |
---|---|
protected javax.mail.Address[] |
bcc |
protected String |
body |
protected String |
bodyMimeType |
protected javax.mail.Address[] |
cc |
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) |
Modifier and Type | Method and Description |
---|---|
javax.mail.internet.MimeMessage |
buildMimeMessage(javax.mail.Session session) |
protected javax.mail.internet.MimeMessage |
createMimeMessage(javax.mail.Session session) |
protected javax.mail.Address[] |
getAddressesByString(String addressesString) |
javax.mail.Address[] |
getBcc() |
String |
getBody() |
protected DataHandler |
getBodyHandler() |
String |
getBodyMimeType() |
javax.mail.Address[] |
getCc() |
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 |
setSendSeparateMails(boolean sendSeparateMails) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMimeMessage
protected final String subject
protected final String body
protected final String bodyMimeType
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
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 String getSubject()
public String getBody()
public String getBodyMimeType()
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
otherwiseprotected javax.mail.Address[] getAddressesByString(String addressesString) throws javax.mail.internet.AddressException
javax.mail.internet.AddressException
public javax.mail.internet.MimeMessage buildMimeMessage(javax.mail.Session session) throws Exception
buildMimeMessage
in interface IBaseMailData
Exception
protected javax.mail.internet.MimeMessage createMimeMessage(javax.mail.Session session) throws Exception
Exception
protected DataHandler getBodyHandler() throws Exception
Exception
Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.