ZenMagick 0.9.6


org.zenmagick.model.ZMEmailMessage

Class ZMEmailMessage

ZMObject
|
+--ZMEmailMessage

public class ZMEmailMessage
extends ZMObject

A generic email message container.

Author:
DerManoMann
Version:
$Id: ZMEmailMessage.php 2069 2009-03-16 23:06:31Z dermanomann $

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMEmailMessage()

Create new instance.

Method Summary
string

getFromEmail()

Get the sender email address.

string

getFromName()

Get the sender name.

string

getMessage()

Get the message.

string

getToEmail()

Get the recipient email address.

string

getToName()

Get the receiver name.

boolean

hasMessage()

Check if there is a message.

void

setFromEmail(string email)

Set the sender email address.

void

setFromName(string name)

Set the sender name.

void

setMessage(string message)

Set the message.

void

setToEmail(string email)

Set the recipient email address.

void

setToName(string name)

Set the receiver name.

Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMEmailMessage

public ZMEmailMessage()

Create new instance. /


Method Detail

getFromEmail

public string getFromEmail()

Get the sender email address.

Returns:
The sender email address.

getFromName

public string getFromName()

Get the sender name.

Returns:
The sender name.

getMessage

public string getMessage()

Get the message.

Returns:
The message.

getToEmail

public string getToEmail()

Get the recipient email address.

Returns:
The recipient email address.

getToName

public string getToName()

Get the receiver name.

Returns:
The recipient name.

hasMessage

public boolean hasMessage()

Check if there is a message.

Returns:
true if there is a message, false if not.

setFromEmail

public void setFromEmail(string email)

Set the sender email address.

Parameters:
email - The sender email address.

setFromName

public void setFromName(string name)

Set the sender name.

Parameters:
name - The sender name.

setMessage

public void setMessage(string message)

Set the message.

Parameters:
message - The message.

setToEmail

public void setToEmail(string email)

Set the recipient email address.

Parameters:
email - The recipient email address.

setToName

public void setToName(string name)

Set the receiver name.

Parameters:
name - The recipient name.

ZenMagick 0.9.6