play.libs
Class Mail
java.lang.Object
play.libs.Mail
public class Mail
- extends java.lang.Object
Mail utils
Constructor Summary |
Mail()
|
Method Summary |
static org.apache.commons.mail.Email |
buildMessage(org.apache.commons.mail.Email email)
|
static Session |
getSession()
|
static java.util.concurrent.Future<java.lang.Boolean> |
send(org.apache.commons.mail.Email email)
Send an email |
static java.util.concurrent.Future<java.lang.Boolean> |
sendMessage(org.apache.commons.mail.Email msg)
Send a JavaMail message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
session
public static Session session
asynchronousSend
public static boolean asynchronousSend
Mail
public Mail()
send
public static java.util.concurrent.Future<java.lang.Boolean> send(org.apache.commons.mail.Email email)
- Send an email
buildMessage
public static org.apache.commons.mail.Email buildMessage(org.apache.commons.mail.Email email)
throws org.apache.commons.mail.EmailException
- Throws:
org.apache.commons.mail.EmailException
getSession
public static Session getSession()
sendMessage
public static java.util.concurrent.Future<java.lang.Boolean> sendMessage(org.apache.commons.mail.Email msg)
- Send a JavaMail message
- Parameters:
msg
- An Email message
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly