org.blojsom.plugin.email
Class EmailMessage

java.lang.Object
  extended byorg.blojsom.plugin.email.EmailMessage

public class EmailMessage
extends java.lang.Object

Send Email (SMTP) Plugin Message. This exists since when EmailUtils creates the messages it wont have access to the Session instance held by SendEmailPlugin.

Version:
$Id: EmailMessage.java,v 1.4 2006/01/04 16:53:00 czarneckid Exp $
Author:
Mark Lussier

Constructor Summary
EmailMessage(java.lang.String subject, java.lang.String message)
          Email message constructor
EmailMessage(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String message)
          E-mail message constructor
 
Method Summary
 java.lang.String getFrom()
          Get the from: address for the e-mail
 java.lang.String getMessage()
          Get the e-mail message content
 java.lang.String getSubject()
          Get the subject of the e-mail
 java.lang.String getTo()
          Get the to: address for the e-mail
 void setFrom(java.lang.String from)
          Set the from: address for the e-mail
 void setMessage(java.lang.String message)
          Set the message content for the e-mail
 void setSubject(java.lang.String subject)
          Set the subject of the e-mail
 void setTo(java.lang.String to)
          Set the to: address for the e-mail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailMessage

public EmailMessage(java.lang.String subject,
                    java.lang.String message)
Email message constructor

Parameters:
subject - E-mail subject
message - E-mail message

EmailMessage

public EmailMessage(java.lang.String from,
                    java.lang.String to,
                    java.lang.String subject,
                    java.lang.String message)
E-mail message constructor

Parameters:
from - From
to - To
subject - E-mail subject
message - E-mail message
Method Detail

getFrom

public java.lang.String getFrom()
Get the from: address for the e-mail

Returns:
From: address

setFrom

public void setFrom(java.lang.String from)
Set the from: address for the e-mail

Parameters:
from - From: address

getTo

public java.lang.String getTo()
Get the to: address for the e-mail

Returns:
To: address

setTo

public void setTo(java.lang.String to)
Set the to: address for the e-mail

Parameters:
to - To: address

getSubject

public java.lang.String getSubject()
Get the subject of the e-mail

Returns:
E-mail subject

setSubject

public void setSubject(java.lang.String subject)
Set the subject of the e-mail

Parameters:
subject - E-mail subject

getMessage

public java.lang.String getMessage()
Get the e-mail message content

Returns:
Message content

setMessage

public void setMessage(java.lang.String message)
Set the message content for the e-mail

Parameters:
message - Message content