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 |
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 |
setContentType(java.lang.String contentType)
|
static void |
setFrom(java.lang.Object from)
|
static void |
setReplyTo(java.lang.Object replyTo)
|
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)
setReplyTo
public static void setReplyTo(java.lang.Object replyTo)
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