public class TextMailData extends Object implements IBaseMailData
Modifier and Type | Field and Description |
---|---|
protected String |
body |
protected String |
bodyMimeType |
protected javax.mail.Address |
from |
protected javax.mail.Address[] |
reply |
protected String |
subject |
protected javax.mail.Address[] |
to |
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) |
String |
getBody() |
protected DataHandler |
getBodyHandler() |
String |
getBodyMimeType() |
javax.mail.Address |
getFrom() |
javax.mail.Address[] |
getReply() |
String |
getSubject() |
javax.mail.Address[] |
getTo() |
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 final javax.mail.Address from
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 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.