play.mvc
Class Mailer
java.lang.Object
play.mvc.Mailer
- All Implemented Interfaces:
- LocalvariablesNamesEnhancer.LocalVariablesSupport
public class Mailer
- extends java.lang.Object
- implements LocalvariablesNamesEnhancer.LocalVariablesSupport
Application mailer support
Field Summary |
protected static java.lang.ThreadLocal<java.util.HashMap<java.lang.String,java.lang.Object>> |
infos
|
Method Summary |
static void |
addAttachment(java.lang.Object... attachments)
|
static void |
addHeader(java.lang.String key,
java.lang.String value)
|
static void |
addRecipient(java.lang.Object... recipients)
|
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(java.lang.Object from)
Can be of the form xxx |
static void |
setPersonal(java.lang.String personal)
Deprecated. |
static void |
setReplyTo(java.lang.Object replyTo)
Can be of the form xxx |
static void |
setSubject(java.lang.String subject,
java.lang.Object... args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
infos
protected static java.lang.ThreadLocal<java.util.HashMap<java.lang.String,java.lang.Object>> infos
Mailer
public Mailer()
setSubject
public static void setSubject(java.lang.String subject,
java.lang.Object... args)
addRecipient
public static void addRecipient(java.lang.Object... recipients)
addAttachment
public static void addAttachment(java.lang.Object... attachments)
setContentType
public static void setContentType(java.lang.String contentType)
setFrom
public static void setFrom(java.lang.Object from)
- Can be of the form xxx
- Parameters:
from
-
setReplyTo
public static void setReplyTo(java.lang.Object replyTo)
- Can be of the form xxx
- Parameters:
replyTo
-
setPersonal
public static void setPersonal(java.lang.String personal)
- Deprecated.
- Parameters:
personal
-
setCharset
public static void setCharset(java.lang.String bodyCharset)
addHeader
public static void addHeader(java.lang.String key,
java.lang.String value)
send
public static java.util.concurrent.Future<java.lang.Boolean> send(java.lang.Object... args)
sendAndWait
public static boolean sendAndWait(java.lang.Object... args)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly