|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.commons.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 |
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,
Object[] attachment,
String[] mimeType)
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 undeliverablepublic 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, 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 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, 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 undeliverablepublic 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-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |