|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
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,
Session session)
This method creates an email message and sends it using the J2EE mail services |
void |
createAndSendMail(MailMessage eMess,
Session session,
File[] files,
String[] mimeType)
This method creates an email message and sends it using the J2EE mail services |
void |
createAndSendMail(MailMessage eMess,
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, 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, 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, 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.2 (2008/12/22 11:33 build-3038-official) | |||||||||
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://deegree.sourceforge.net