edu.sc.seis.fissuresUtil.exceptionHandler
Class ResultMailer

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.exceptionHandler.ResultMailer
Direct Known Subclasses:
MailExceptionReporter

public class ResultMailer
extends java.lang.Object


Field Summary
static java.lang.String FROM
          mail.from specifies the sender of the exception email
static java.lang.String SMTP
          mail.smtp.host specifies the smtp server you want to use
static java.lang.String SUBJECT
          mail.subject specifies the subject of the exception email
static java.lang.String TO
          mail.to specifies the recipient of the exception email
 
Constructor Summary
ResultMailer(java.util.Properties props)
          The four key strings' SMTP, SUBJECT, FROM and TO values must be set in the passed in properties
 
Method Summary
 void mail(java.lang.String message, java.lang.String bodyText, java.util.List sections)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SMTP

public static final java.lang.String SMTP
mail.smtp.host specifies the smtp server you want to use

See Also:
Constant Field Values

TO

public static final java.lang.String TO
mail.to specifies the recipient of the exception email

See Also:
Constant Field Values

FROM

public static final java.lang.String FROM
mail.from specifies the sender of the exception email

See Also:
Constant Field Values

SUBJECT

public static final java.lang.String SUBJECT
mail.subject specifies the subject of the exception email

See Also:
Constant Field Values
Constructor Detail

ResultMailer

public ResultMailer(java.util.Properties props)
             throws MissingPropertyException
The four key strings' SMTP, SUBJECT, FROM and TO values must be set in the passed in properties

Throws:
MissingPropertyException
Method Detail

mail

public void mail(java.lang.String message,
                 java.lang.String bodyText,
                 java.util.List sections)
          throws java.lang.Exception
Throws:
java.lang.Exception