public class SimpleMail extends MimeMessage implements SessionProvider
EmailDatasink
. For easy construction, you can use
MailBuilder
.Constructor and Description |
---|
SimpleMail(Session session,
java.lang.String from,
java.lang.String fromName) |
Modifier and Type | Method and Description |
---|---|
Session |
getSession() |
void |
setBccRecipients(java.lang.String... recipients) |
void |
setCCRecipients(java.lang.String... recipients) |
void |
setContent(java.lang.String text,
SimpleAttachment... attachements) |
void |
setContents(java.lang.String text) |
void |
setFrom(Address from,
boolean setSender) |
void |
setFrom(java.lang.String from,
java.lang.String fromName) |
void |
setHtml(java.lang.String html) |
void |
setHtml(java.lang.String html,
SimpleAttachment... attachments) |
void |
setSubject(java.lang.String subject) |
void |
setText(java.lang.String text) |
void |
setToRecipients(java.util.List<java.lang.String> recipients) |
void |
setToRecipients(java.lang.String... recipients) |
public SimpleMail(Session session, java.lang.String from, @Nullable java.lang.String fromName)
public void setFrom(java.lang.String from, java.lang.String fromName)
public void setFrom(Address from, boolean setSender)
public void setText(java.lang.String text)
public void setContents(java.lang.String text)
public void setHtml(java.lang.String html)
public void setHtml(java.lang.String html, SimpleAttachment... attachments)
public void setContent(java.lang.String text, SimpleAttachment... attachements)
public void setToRecipients(java.util.List<java.lang.String> recipients)
public void setToRecipients(java.lang.String... recipients)
public void setCCRecipients(java.lang.String... recipients)
public void setBccRecipients(java.lang.String... recipients)
public void setSubject(java.lang.String subject)
public Session getSession()
getSession
in interface SessionProvider