public class SimpleTextMail extends Object implements IMailData
Modifier and Type | Field and Description |
---|---|
protected String |
body |
protected String |
bodyMimeType |
protected javax.mail.Address |
from |
protected String |
subject |
protected javax.mail.Address[] |
to |
Constructor and Description |
---|
SimpleTextMail(String subject,
String body,
String bodyMimeType,
String from,
String to) |
Modifier and Type | Method and Description |
---|---|
protected javax.mail.internet.MimeMessage |
buildMessage(javax.mail.Session session) |
String |
getBody() |
protected DataHandler |
getBodyHandler() |
String |
getBodyMimeType() |
javax.mail.Address |
getFrom() |
javax.mail.internet.MimeMessage |
getMimeMessage(javax.mail.Session session) |
String |
getSubject() |
javax.mail.Address[] |
getTo() |
protected final String subject
protected final String body
protected final String bodyMimeType
protected final javax.mail.Address[] to
protected final javax.mail.Address from
public String getSubject()
public String getBody()
public String getBodyMimeType()
public javax.mail.Address getFrom()
public javax.mail.Address[] getTo()
protected javax.mail.internet.MimeMessage buildMessage(javax.mail.Session session) throws Exception
Exception
protected DataHandler getBodyHandler() throws Exception
Exception
public javax.mail.internet.MimeMessage getMimeMessage(javax.mail.Session session) throws Exception
getMimeMessage
in interface IMailData
Exception
Copyright © 2017 XIMA MEDIA GmbH. All rights reserved.