|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.libs.Mail
public class Mail
Mail utils
Nested Class Summary | |
---|---|
static class |
Mail.Mock
|
static class |
Mail.SMTPAuthenticator
|
Field Summary | |
---|---|
static boolean |
asynchronousSend
|
static javax.mail.Session |
session
|
Constructor Summary | |
---|---|
Mail()
|
Method Summary | |
---|---|
static javax.mail.internet.MimeMessage |
buildMessage(java.lang.Object from,
java.lang.Object replyTo,
java.lang.Object[] recipients,
java.lang.String subject,
java.lang.String body,
java.lang.String alternate,
java.lang.String contentType,
java.lang.Object... attachments)
Construct a MimeMessage |
static java.util.concurrent.Future<java.lang.Boolean> |
send(java.lang.Object from,
java.lang.Object replyTo,
java.lang.Object[] recipients,
java.lang.String subject,
java.lang.String body,
java.lang.String alternate,
java.lang.String contentType,
java.lang.Object... attachments)
Send an email |
static java.util.concurrent.Future<java.lang.Boolean> |
send(java.lang.String from,
java.lang.String[] recipients,
java.lang.String subject,
java.lang.String body)
Send an email in text/plain format |
static java.util.concurrent.Future<java.lang.Boolean> |
send(java.lang.String from,
java.lang.String[] recipients,
java.lang.String subject,
java.lang.String body,
java.lang.Object... attachments)
Send an email in text/plain |
static java.util.concurrent.Future<java.lang.Boolean> |
send(java.lang.String from,
java.lang.String recipient,
java.lang.String subject,
java.lang.String body)
Send an email in plain text |
static java.util.concurrent.Future<java.lang.Boolean> |
send(java.lang.String from,
java.lang.String recipient,
java.lang.String subject,
java.lang.String body,
java.lang.Object... attachments)
Send an email in text/plain |
static java.util.concurrent.Future<java.lang.Boolean> |
send(java.lang.String from,
java.lang.String recipient,
java.lang.String subject,
java.lang.String body,
java.lang.String alternate)
Send an email in text/html with a text/plain alternative |
static java.util.concurrent.Future<java.lang.Boolean> |
send(java.lang.String from,
java.lang.String recipient,
java.lang.String subject,
java.lang.String body,
java.lang.String alternate,
java.lang.Object... obj)
Send an email in text/html with a text/plain alternative and attachments |
static java.util.concurrent.Future<java.lang.Boolean> |
sendMessage(javax.mail.Message 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 |
---|
public static javax.mail.Session session
public static boolean asynchronousSend
Constructor Detail |
---|
public Mail()
Method Detail |
---|
public static java.util.concurrent.Future<java.lang.Boolean> send(java.lang.String from, java.lang.String recipient, java.lang.String subject, java.lang.String body)
from
- From addressrecipient
- To addresssubject
- Subjectbody
- Bodypublic static java.util.concurrent.Future<java.lang.Boolean> send(java.lang.String from, java.lang.String recipient, java.lang.String subject, java.lang.String body, java.lang.String alternate)
from
- From addressrecipient
- To addresssubject
- Subjectbody
- text/html body contentalternate
- text/plain alternative content (optional)public static java.util.concurrent.Future<java.lang.Boolean> send(java.lang.String from, java.lang.String recipient, java.lang.String subject, java.lang.String body, java.lang.String alternate, java.lang.Object... obj)
from
- From addressrecipient
- To addresssubject
- Subjectbody
- text/html body contentalternate
- text/plain alternative content (optional)obj
- the attachments to the emailpublic static java.util.concurrent.Future<java.lang.Boolean> send(java.lang.String from, java.lang.String[] recipients, java.lang.String subject, java.lang.String body)
from
- From addressrecipients
- To addressessubject
- Subjectbody
- The text/plain body of the emailpublic static java.util.concurrent.Future<java.lang.Boolean> send(java.lang.String from, java.lang.String recipient, java.lang.String subject, java.lang.String body, java.lang.Object... attachments)
from
- From addressrecipient
- To addresssubject
- Subjectbody
- plain/text body of the emailattachments
- File attachmentspublic static java.util.concurrent.Future<java.lang.Boolean> send(java.lang.String from, java.lang.String[] recipients, java.lang.String subject, java.lang.String body, java.lang.Object... attachments)
from
- From addressrecipients
- To addressessubject
- Subjectbody
- Bodyattachments
- File attachmentspublic static java.util.concurrent.Future<java.lang.Boolean> send(java.lang.Object from, java.lang.Object replyTo, java.lang.Object[] recipients, java.lang.String subject, java.lang.String body, java.lang.String alternate, java.lang.String contentType, java.lang.Object... attachments)
from
- From addressreplyTo
- ReplyTo addressrecipients
- To addressessubject
- Subjectbody
- body of the emailalternate
- text/plain body (optional). This parameter is ignored if contentType is set to text/plain or is null.contentType
- The content type of the body (text/plain or text/html)attachments
- File attachmentspublic static javax.mail.internet.MimeMessage buildMessage(java.lang.Object from, java.lang.Object replyTo, java.lang.Object[] recipients, java.lang.String subject, java.lang.String body, java.lang.String alternate, java.lang.String contentType, java.lang.Object... attachments) throws javax.mail.MessagingException
from
- From addressrecipients
- To addressessubject
- Subjectbody
- body of the emailalternate
- text/plain body (optional). This parameter is ignored if contentType is set to text/plain or is null.contentType
- The content type of the body (text/plain or text/html) (optional)attachments
- File attachments
javax.mail.MessagingException
public static java.util.concurrent.Future<java.lang.Boolean> sendMessage(javax.mail.Message msg)
msg
- A JavaMail message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |