org.opengts.war.track
Class EMail

java.lang.Object
  extended by org.opengts.war.track.EMail

public class EMail
extends java.lang.Object


Constructor Summary
EMail()
           
 
Method Summary
static java.lang.String getEMailAddress(java.lang.String addr)
          Extracts the actual email address from the specified string
static boolean isSendMailEnabled()
          Returns true if SendMail is enabled ("javax.mail.jar" file loaded)
static boolean send(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String bcc, java.lang.String subject, java.lang.String msgBody, SendMail.SmtpProperties smtpProps)
          Sends an email
static boolean validateAddress(java.lang.String addr)
           
static boolean validateAddresses(java.lang.String addrs, boolean acceptSMS)
          Validates the syntax of the specified list of multiple email addresses
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EMail

public EMail()
Method Detail

isSendMailEnabled

public static boolean isSendMailEnabled()
Returns true if SendMail is enabled ("javax.mail.jar" file loaded)


send

public static boolean send(java.lang.String from,
                           java.lang.String to,
                           java.lang.String cc,
                           java.lang.String bcc,
                           java.lang.String subject,
                           java.lang.String msgBody,
                           SendMail.SmtpProperties smtpProps)
Sends an email


validateAddress

public static boolean validateAddress(java.lang.String addr)

validateAddresses

public static boolean validateAddresses(java.lang.String addrs,
                                        boolean acceptSMS)
Validates the syntax of the specified list of multiple email addresses


getEMailAddress

public static java.lang.String getEMailAddress(java.lang.String addr)
Extracts the actual email address from the specified string