|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pebble.util.MailUtils
public class MailUtils
Utilities for e-mail related functions.
| Constructor Summary | |
|---|---|
MailUtils()
|
|
| Method Summary | |
|---|---|
static Session |
createSession()
Creates a reference to a JavaMail Session. |
static void |
sendMail(Session session,
Blog blog,
java.util.Collection to,
java.util.Collection cc,
java.util.Collection bcc,
java.lang.String subject,
java.lang.String message)
Sends an e-mail. |
static void |
sendMail(Session session,
Blog blog,
java.util.Collection to,
java.util.Collection cc,
java.lang.String subject,
java.lang.String message)
Sends an e-mail. |
static void |
sendMail(Session session,
Blog blog,
java.util.Collection to,
java.lang.String subject,
java.lang.String message)
Sends an e-mail. |
static void |
sendMail(Session session,
Blog blog,
java.lang.String to,
java.lang.String subject,
java.lang.String message)
Sends an e-mail. |
static void |
validate(java.lang.String email,
ValidationContext context)
Validates the given comment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailUtils()
| Method Detail |
|---|
public static void sendMail(Session session,
Blog blog,
java.lang.String to,
java.lang.String subject,
java.lang.String message)
blog - the notifying blogto - the e-mail addresses of the recipients in the TO fieldsubject - the subject of the e-mailmessage - the body of the e-mail
public static void sendMail(Session session,
Blog blog,
java.util.Collection to,
java.lang.String subject,
java.lang.String message)
blog - the notifying blogto - the e-mail addresses of the recipients in the TO fieldsubject - the subject of the e-mailmessage - the body of the e-mail
public static void sendMail(Session session,
Blog blog,
java.util.Collection to,
java.util.Collection cc,
java.lang.String subject,
java.lang.String message)
blog - the notifying blogto - the e-mail addresses of the recipients in the TO fieldcc - the e-mail addresses of the recipients in the CC fieldsubject - the subject of the e-mailmessage - the body of the e-mail
public static void sendMail(Session session,
Blog blog,
java.util.Collection to,
java.util.Collection cc,
java.util.Collection bcc,
java.lang.String subject,
java.lang.String message)
blog - the notifying blogto - the e-mail addresses of the recipients in the TO fieldcc - the e-mail addresses of the recipients in the CC fieldbcc - the e-mail addresses of the recipients in the BCC fieldsubject - the subject of the e-mailmessage - the body of the e-mail
public static Session createSession()
throws java.lang.Exception
java.lang.Exception - if something goes wrong creating a session
public static void validate(java.lang.String email,
ValidationContext context)
email - the Comment instance to validatecontext - the context in which to perform validation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||