uk.ac.soton.itinnovation.grid.service.utils
Class EmailMessage

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.utils.EmailMessage

public class EmailMessage
extends Object

EmailMessage class This class is designed to build an email EmailMessage. This class is used to create a EmailMessage object which is then passed to a Transport object. The Transport object sends off this EmailMessage as an email EmailMessage


Constructor Summary
EmailMessage()
          EmailMessage() constractor
 
Method Summary
 String getFromEmail()
          get the sender email address
 String getFromName()
          get the sender name
 String getSubject()
          Returns the EmailMessage subject.
 String getText()
          Returns the EmailMessage text.
 String getToEmail()
          get recipient name
 String getToName()
          get recipient name
 void setFromEmail(String email)
          set the sender email address
 void setFromName(String name)
          set the sender name
 void setSubject(String s)
          Sets the SUBJECT of the email.
 void setText(String msg)
          Sets the text body of the email.
 void setToEmail(String email)
          Returns the sender name
 void setToName(String name)
          Returns the sender name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailMessage

public EmailMessage()
EmailMessage() constractor

Method Detail

getFromName

public String getFromName()
get the sender name


setFromName

public void setFromName(String name)
set the sender name


getToName

public String getToName()
get recipient name


setToName

public void setToName(String name)
Returns the sender name


getFromEmail

public String getFromEmail()
get the sender email address


setFromEmail

public void setFromEmail(String email)
set the sender email address


getToEmail

public String getToEmail()
get recipient name


setToEmail

public void setToEmail(String email)
Returns the sender name


getSubject

public String getSubject()
Returns the EmailMessage subject.


getText

public String getText()
Returns the EmailMessage text.


setSubject

public void setSubject(String s)
Sets the SUBJECT of the email.


setText

public void setText(String msg)
Sets the text body of the email.



Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.