public class Mail
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Mail.Mock |
static class |
Mail.SMTPAuthenticator |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
asynchronousSend |
static Session |
session |
| Constructor and Description |
|---|
Mail() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public static Session session
public static boolean asynchronousSend
public static java.util.concurrent.Future<java.lang.Boolean> send(org.apache.commons.mail.Email email)
public static org.apache.commons.mail.Email buildMessage(org.apache.commons.mail.Email email)
throws org.apache.commons.mail.EmailException
org.apache.commons.mail.EmailExceptionpublic static Session getSession()
public static java.util.concurrent.Future<java.lang.Boolean> sendMessage(org.apache.commons.mail.Email msg)
msg - An Email messageGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly