play.libs
Class Mail

java.lang.Object
  extended by play.libs.Mail

public class Mail
extends java.lang.Object

Mail utils


Nested Class Summary
static class Mail.Mock
           
static class Mail.SMTPAuthenticator
           
 
Field Summary
static boolean asynchronousSend
           
static Session session
           
 
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
 

Field Detail

session

public static Session session

asynchronousSend

public static boolean asynchronousSend
Constructor Detail

Mail

public Mail()
Method Detail

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