| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.framework.mail.MailHelper
public final class MailHelper
A helper class to create and send mail.
Message, 
MimeMessage| Constructor Summary | |
|---|---|
MailHelper()
Creates a mail helper to send a message.  | 
|
| Method Summary | |
|---|---|
 void | 
createAndSendMail(MailMessage eMess,
                                   javax.mail.Session session)
This method creates an email message and sends it using the J2EE mail services  | 
 void | 
createAndSendMail(MailMessage eMess,
                                   javax.mail.Session session,
                                   File[] files,
                                   String[] mimeType)
This method creates an email message and sends it using the J2EE mail services  | 
 void | 
createAndSendMail(MailMessage eMess,
                                   javax.mail.Session session,
                                   Object[] attachment,
                                   String[] mimeType)
This method creates an email message and sends it using the J2EE mail services  | 
 void | 
createAndSendMail(MailMessage eMess,
                                   javax.mail.Session session,
                                   String mailHostUser,
                                   String mailHostPassword)
This method creates an email message and sends it using the J2EE mail services  | 
static void | 
createAndSendMail(MailMessage eMess,
                                   String mailHost)
This method creates an email message and sends it using the J2EE mail services  | 
static void | 
createAndSendMail(MailMessage eMess,
                                   String mailHost,
                                   File[] files,
                                   String[] mimeType)
This method creates an email message and sends it using the J2EE mail services  | 
static void | 
createAndSendMail(MailMessage eMess,
                                   String mailHost,
                                   File[] files,
                                   String[] mimeType,
                                   String mailHostUser,
                                   String mailHostPassword)
This method creates an email message and sends it using the J2EE mail services  | 
static void | 
createAndSendMail(MailMessage eMess,
                                   String mailHost,
                                   Object[] attachment,
                                   String[] mimeType)
This method creates an email message and sends it using the J2EE mail services  | 
static void | 
createAndSendMail(MailMessage eMess,
                                   String mailHost,
                                   Object[] attachment,
                                   String[] mimeType,
                                   String mailHostUser,
                                   String mailHostPassword)
This method creates an email message and sends it using the J2EE mail services  | 
static void | 
createAndSendMail(MailMessage eMess,
                                   String mailHost,
                                   String mailHostUser,
                                   String mailHostPassword)
This method creates an email message and sends it using the J2EE mail services  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MailHelper()
| Method Detail | 
|---|
public static void createAndSendMail(MailMessage eMess,
                                     String mailHost)
                              throws SendMailException
eMess - a email messagemailHost - name of the SMTP host
SendMailException - an exception if the message is undeliverable
public static void createAndSendMail(MailMessage eMess,
                                     String mailHost,
                                     String mailHostUser,
                                     String mailHostPassword)
                              throws SendMailException
eMess - a email messagemailHost - name of the SMTP hostmailHostUser - user name for mail hostmailHostPassword - password of user
SendMailException - an exception if the message is undeliverable
public static void createAndSendMail(MailMessage eMess,
                                     String mailHost,
                                     Object[] attachment,
                                     String[] mimeType)
                              throws SendMailException
eMess - a email messagemailHost - name of the SMTP hostattachment - Object to attach to a mailmimeType - mimetype of the attchment
SendMailException
public static void createAndSendMail(MailMessage eMess,
                                     String mailHost,
                                     Object[] attachment,
                                     String[] mimeType,
                                     String mailHostUser,
                                     String mailHostPassword)
                              throws SendMailException
eMess - a email messagemailHost - name of the SMTP hostattachment - Object to attach to a mailmimeType - mimetype of the attchmentmailHostUser - user name for mail hostmailHostPassword - password of user
SendMailException
public static void createAndSendMail(MailMessage eMess,
                                     String mailHost,
                                     File[] files,
                                     String[] mimeType)
                              throws SendMailException
eMess - a email messagemailHost - name of the SMTP hostfiles - files to attach to a mailmimeType - mimetype of the attchment
SendMailException
public static void createAndSendMail(MailMessage eMess,
                                     String mailHost,
                                     File[] files,
                                     String[] mimeType,
                                     String mailHostUser,
                                     String mailHostPassword)
                              throws SendMailException
eMess - a email messagemailHost - name of the SMTP hostfiles - files to attach to a mailmimeType - mimetype of the attchmentmailHostUser - mailHostPassword - 
SendMailException
public void createAndSendMail(MailMessage eMess,
                              javax.mail.Session session)
                       throws SendMailException
eMess - a email messagesession - 
SendMailException - an exception if the message is undeliverableTransport, 
J2EE Mail Session connection
      
public void createAndSendMail(MailMessage eMess,
                              javax.mail.Session session,
                              String mailHostUser,
                              String mailHostPassword)
                       throws SendMailException
eMess - a email messagesession - mailHostUser - mailHostPassword - 
SendMailException - an exception if the message is undeliverableTransport, 
J2EE Mail Session connection
      
public void createAndSendMail(MailMessage eMess,
                              javax.mail.Session session,
                              Object[] attachment,
                              String[] mimeType)
                       throws SendMailException
eMess - an email messagesession - attachment - Object to attach to a mailmimeType - mimetype of the attchment
SendMailException - an exception if the message is undeliverable
public void createAndSendMail(MailMessage eMess,
                              javax.mail.Session session,
                              File[] files,
                              String[] mimeType)
                       throws SendMailException
eMess - an email messagesession - files - files to attach to a mailmimeType - mimetype of the attchment
SendMailException - an exception if the message is undeliverable
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org