edu.whoi.ursa.argoDatabase.web
Class Emailer

java.lang.Object
  extended by edu.whoi.ursa.argoDatabase.web.Emailer

public class Emailer
extends java.lang.Object


Field Summary
private  java.io.File fileAttachment
           
private  java.lang.String host
           
private  java.lang.String mailfrom
           
private  java.lang.String mailto
           
private  java.lang.String messageBody
           
private  javax.mail.Session session
           
private  java.lang.String subject
           
private  java.util.Properties systemProperties
           
 
Constructor Summary
Emailer(java.lang.String mailto)
           
Emailer(java.lang.String mailto, java.lang.String host)
           
 
Method Summary
 java.io.File getFileAttachment()
           
 java.lang.String getHost()
           
 java.lang.String getMailfrom()
           
 java.lang.String getMailto()
           
 java.lang.String getMessageBody()
           
 java.lang.String getSubject()
           
 void send()
           
 void setFileAttachment(java.io.File fileAttachment)
           
 void setHost(java.lang.String host)
           
 void setMailfrom(java.lang.String mailfrom)
           
 void setMailto(java.lang.String mailto)
           
 void setMessageBody(java.lang.String messageBody)
           
 void setSubject(java.lang.String subject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mailfrom

private java.lang.String mailfrom

session

private javax.mail.Session session

mailto

private java.lang.String mailto

host

private java.lang.String host

subject

private java.lang.String subject

messageBody

private java.lang.String messageBody

fileAttachment

private java.io.File fileAttachment

systemProperties

private java.util.Properties systemProperties
Constructor Detail

Emailer

public Emailer(java.lang.String mailto)
Parameters:
mailto -

Emailer

public Emailer(java.lang.String mailto,
               java.lang.String host)
Parameters:
mailto -
host -
Method Detail

getMailfrom

public java.lang.String getMailfrom()
Returns:
the mailfrom

setMailfrom

public void setMailfrom(java.lang.String mailfrom)
Parameters:
mailfrom - the mailfrom to set

getMailto

public java.lang.String getMailto()
Returns:
the mailto

setMailto

public void setMailto(java.lang.String mailto)
Parameters:
mailto - the mailto to set

getHost

public java.lang.String getHost()
Returns:
the host

setHost

public void setHost(java.lang.String host)
Parameters:
host - the host to set

getSubject

public java.lang.String getSubject()
Returns:
the subject

setSubject

public void setSubject(java.lang.String subject)
Parameters:
subject - the subject to set

getMessageBody

public java.lang.String getMessageBody()
Returns:
the messageBody

setMessageBody

public void setMessageBody(java.lang.String messageBody)
Parameters:
messageBody - the messageBody to set

getFileAttachment

public java.io.File getFileAttachment()
Returns:
the fileAttachment

setFileAttachment

public void setFileAttachment(java.io.File fileAttachment)
Parameters:
fileAttachment - the fileAttachment to set

send

public void send()
          throws java.lang.Exception
Throws:
java.lang.Exception