com.irisel.oms.mailer
Class MailHelper

java.lang.Object
  extended by com.irisel.oms.mailer.MailHelper

public class MailHelper
extends java.lang.Object

The MailHelper class contains methods to send mail to a server configured as a config item. It does not use application server services, it suits standalone batches. It depends on the database connection to obtain the mail and account configuration.

Author:
Jose Manuel Gomez

Constructor Summary
MailHelper()
           
 
Method Summary
static void init(CLBrowser clb)
           
static boolean isReady()
           
static void postMail(java.lang.String[] recipients, java.lang.String[] ccList, java.lang.String[] bccList, java.lang.String subject, java.lang.String message, java.lang.String attachment)
           
static void postMail(java.lang.String subject, java.lang.String message, java.lang.String attachment)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailHelper

public MailHelper()
Method Detail

isReady

public static boolean isReady()

init

public static void init(CLBrowser clb)

postMail

public static void postMail(java.lang.String subject,
                            java.lang.String message,
                            java.lang.String attachment)
                     throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

postMail

public static void postMail(java.lang.String[] recipients,
                            java.lang.String[] ccList,
                            java.lang.String[] bccList,
                            java.lang.String subject,
                            java.lang.String message,
                            java.lang.String attachment)
                     throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException