| java.lang.Object org.deegree.framework.mail.MailHelper
MailHelper | final public class MailHelper (Code) | | A helper class to create and send mail.
author: Torsten Friebe author: last edited by: $Author: apoth $ version: $Revision: 9339 $,$Date: 2007-12-27 04:31:52 -0800 (Thu, 27 Dec 2007) $ See Also: javax.mail.Message See Also: javax.mail.internet.MimeMessage |
Constructor Summary | |
public | MailHelper() Creates a mail helper to send a message. |
Method Summary | |
public static void | createAndSendMail(MailMessage eMess, String mailHost) | public static void | createAndSendMail(MailMessage eMess, String mailHost, Object[] attachment, String[] mimeType) | public static void | createAndSendMail(MailMessage eMess, String mailHost, File[] files, String[] mimeType) | public void | createAndSendMail(MailMessage eMess, Session session) | public void | createAndSendMail(MailMessage eMess, Session session, Object[] attachment, String[] mimeType) | public void | createAndSendMail(MailMessage eMess, Session session, File[] files, String[] mimeType) |
MailHelper | public MailHelper()(Code) | | Creates a mail helper to send a message.
|
createAndSendMail | public static void createAndSendMail(MailMessage eMess, String mailHost) throws SendMailException(Code) | | This method creates an email message and sends it using the J2EE mail services
Parameters: eMess - a email message Parameters: mailHost - name of the SMTP host throws: SendMailException - an exception if the message is undeliverable |
createAndSendMail | public static void createAndSendMail(MailMessage eMess, String mailHost, Object[] attachment, String[] mimeType) throws SendMailException(Code) | | This method creates an email message and sends it using the J2EE mail services
Parameters: eMess - a email message Parameters: mailHost - name of the SMTP host Parameters: attachment - Object to attach to a mail Parameters: mimeType - mimetype of the attchment throws: SendMailException - |
createAndSendMail | public static void createAndSendMail(MailMessage eMess, String mailHost, File[] files, String[] mimeType) throws SendMailException(Code) | | This method creates an email message and sends it using the J2EE mail services
Parameters: eMess - a email message Parameters: mailHost - name of the SMTP host Parameters: files - files to attach to a mail Parameters: mimeType - mimetype of the attchment throws: SendMailException - |
createAndSendMail | public void createAndSendMail(MailMessage eMess, Session session, Object[] attachment, String[] mimeType) throws SendMailException(Code) | | This method creates an email message and sends it using the J2EE mail services
Parameters: eMess - an email message Parameters: session - Parameters: attachment - Object to attach to a mail Parameters: mimeType - mimetype of the attchment throws: SendMailException - an exception if the message is undeliverable |
createAndSendMail | public void createAndSendMail(MailMessage eMess, Session session, File[] files, String[] mimeType) throws SendMailException(Code) | | This method creates an email message and sends it using the J2EE mail services
Parameters: eMess - an email message Parameters: session - Parameters: files - files to attach to a mail Parameters: mimeType - mimetype of the attchment throws: SendMailException - an exception if the message is undeliverable |
|
|