public class Mailer extends java.lang.Object implements LocalvariablesNamesEnhancer.LocalVariablesSupport
Modifier and Type | Field and Description |
---|---|
protected static java.lang.ThreadLocal<java.util.Map<java.lang.String,java.lang.Object>> |
infos |
Constructor and Description |
---|
Mailer() |
Modifier and Type | Method and Description |
---|---|
static void |
addAttachment(org.apache.commons.mail.EmailAttachment... attachments) |
static void |
addBcc(java.lang.String... bccs) |
static void |
addCc(java.lang.String... ccs) |
static void |
addHeader(java.lang.String key,
java.lang.String value) |
static void |
addRecipient(java.lang.Object... recipients)
Deprecated.
use method {
addRecipient(String...) } |
static void |
addRecipient(java.lang.String... recipients) |
static void |
attachDataSource(javax.activation.DataSource dataSource,
java.lang.String name,
java.lang.String description) |
static void |
attachDataSource(javax.activation.DataSource dataSource,
java.lang.String name,
java.lang.String description,
java.lang.String disposition) |
static java.lang.String |
attachInlineEmbed(javax.activation.DataSource dataSource,
java.lang.String name) |
static java.lang.String |
getEmbedddedSrc(java.lang.String urlString,
java.lang.String name)
Deprecated.
|
static java.lang.String |
getEmbeddedSrc(java.lang.String urlString,
java.lang.String name) |
static java.util.concurrent.Future<java.lang.Boolean> |
send(java.lang.Object... args) |
static boolean |
sendAndWait(java.lang.Object... args) |
static void |
setCharset(java.lang.String bodyCharset) |
static void |
setContentType(java.lang.String contentType) |
static void |
setFrom(javax.mail.internet.InternetAddress from) |
static void |
setFrom(java.lang.String from)
Can be of the form xxx <[email protected]>
|
static void |
setReplyTo(javax.mail.internet.InternetAddress replyTo) |
static void |
setReplyTo(java.lang.String replyTo)
Can be of the form xxx <[email protected]>
|
static void |
setSubject(java.lang.String subject,
java.lang.Object... args)
Set subject of mail, optionally providing formatting arguments
|
protected static final java.lang.ThreadLocal<java.util.Map<java.lang.String,java.lang.Object>> infos
public static void setSubject(java.lang.String subject, java.lang.Object... args)
subject
- plain String or formatted string - interpreted as formatted string only if arguments are providedargs
- optional arguments for formatting subjectpublic static void addRecipient(java.lang.String... recipients)
@Deprecated public static void addRecipient(java.lang.Object... recipients)
addRecipient(String...)
}recipients
- List of recipientspublic static void addBcc(java.lang.String... bccs)
public static void addCc(java.lang.String... ccs)
public static void addAttachment(org.apache.commons.mail.EmailAttachment... attachments)
public static void attachDataSource(javax.activation.DataSource dataSource, java.lang.String name, java.lang.String description, java.lang.String disposition)
public static void attachDataSource(javax.activation.DataSource dataSource, java.lang.String name, java.lang.String description)
public static java.lang.String attachInlineEmbed(javax.activation.DataSource dataSource, java.lang.String name)
public static void setContentType(java.lang.String contentType)
public static void setFrom(java.lang.String from)
from
- The sender name (ex: xxx <[email protected]>)public static void setFrom(javax.mail.internet.InternetAddress from)
@Deprecated public static java.lang.String getEmbedddedSrc(java.lang.String urlString, java.lang.String name)
public static java.lang.String getEmbeddedSrc(java.lang.String urlString, java.lang.String name)
public static void setReplyTo(java.lang.String replyTo)
replyTo
- : The reply to address (ex: xxx <[email protected]>)public static void setReplyTo(javax.mail.internet.InternetAddress replyTo)
public static void setCharset(java.lang.String bodyCharset)
public static void addHeader(java.lang.String key, java.lang.String value)
public static java.util.concurrent.Future<java.lang.Boolean> send(java.lang.Object... args)
public static boolean sendAndWait(java.lang.Object... args)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly