|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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,
java.io.File[] files,
java.lang.String[] mimeType)
This method creates an email message and sends it using the J2EE mail services |
void |
createAndSendMail(MailMessage eMess,
javax.mail.Session session,
java.lang.Object[] attachment,
java.lang.String[] mimeType)
This method creates an email message and sends it using the J2EE mail services |
void |
createAndSendMail(MailMessage eMess,
javax.mail.Session session,
java.lang.String mailHostUser,
java.lang.String mailHostPassword)
This method creates an email message and sends it using the J2EE mail services |
static void |
createAndSendMail(MailMessage eMess,
java.lang.String mailHost)
This method creates an email message and sends it using the J2EE mail services |
static void |
createAndSendMail(MailMessage eMess,
java.lang.String mailHost,
java.io.File[] files,
java.lang.String[] mimeType)
This method creates an email message and sends it using the J2EE mail services |
static void |
createAndSendMail(MailMessage eMess,
java.lang.String mailHost,
java.io.File[] files,
java.lang.String[] mimeType,
java.lang.String mailHostUser,
java.lang.String mailHostPassword)
This method creates an email message and sends it using the J2EE mail services |
static void |
createAndSendMail(MailMessage eMess,
java.lang.String mailHost,
java.lang.Object[] attachment,
java.lang.String[] mimeType)
This method creates an email message and sends it using the J2EE mail services |
static void |
createAndSendMail(MailMessage eMess,
java.lang.String mailHost,
java.lang.Object[] attachment,
java.lang.String[] mimeType,
java.lang.String mailHostUser,
java.lang.String mailHostPassword)
This method creates an email message and sends it using the J2EE mail services |
static void |
createAndSendMail(MailMessage eMess,
java.lang.String mailHost,
java.lang.String mailHostUser,
java.lang.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, java.lang.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, java.lang.String mailHost, java.lang.String mailHostUser, java.lang.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 undeliverablepublic static void createAndSendMail(MailMessage eMess, java.lang.String mailHost, java.lang.Object[] attachment, java.lang.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, java.lang.String mailHost, java.lang.Object[] attachment, java.lang.String[] mimeType, java.lang.String mailHostUser, java.lang.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, java.lang.String mailHost, java.io.File[] files, java.lang.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, java.lang.String mailHost, java.io.File[] files, java.lang.String[] mimeType, java.lang.String mailHostUser, java.lang.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, java.lang.String mailHostUser, java.lang.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, java.lang.Object[] attachment, java.lang.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, java.io.File[] files, java.lang.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.5 (2011/06/29 09:44 build-8-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://www.deegree.org