public class MailMessage
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
from |
static int |
IMAGE_WIDTH |
protected java.lang.String |
lang |
protected java.lang.String |
message |
protected java.lang.String |
recipients |
protected java.lang.String |
subject |
| Constructor and Description |
|---|
MailMessage(java.lang.String from,
java.lang.String recipients,
java.lang.String subject,
java.lang.String message)
Creates a new MailMessage object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFrom()
Returns the sender address.
|
java.lang.String |
getLang()
Return the language of the mail.
|
java.lang.String |
getMessage()
Returns the optional message text.
|
java.lang.String |
getRecipients()
Returns a String that contains mail recipients, each being separated by a
comma.
|
java.lang.String |
getSubject()
Return the optional subject of the mail.
|
void |
setFrom(java.lang.String from)
Sets the sender of the mail.
|
void |
setLang(java.lang.String lang)
Sets the language of the mail.
|
void |
setMessage(java.lang.String message)
Sets the message of the mail.
|
void |
setRecipients(java.lang.String recipients)
Sets the recipients of the mail.
|
void |
setSubject(java.lang.String subject)
Sets the subject of the mail.
|
public static final int IMAGE_WIDTH
protected java.lang.String from
protected java.lang.String recipients
protected java.lang.String subject
protected java.lang.String message
protected java.lang.String lang
public MailMessage(java.lang.String from,
java.lang.String recipients,
java.lang.String subject,
java.lang.String message)
from - the sender address.recipients - a String that contains mail recipients, each being separated by a
comma.subject - the subject of the mail (optional).message - the message of the mail (optional).public java.lang.String getFrom()
public java.lang.String getMessage()
public java.lang.String getRecipients()
public java.lang.String getSubject()
public void setSubject(java.lang.String subject)
subject - a String that contains the subject of the mail.public void setRecipients(java.lang.String recipients)
recipients - a String that contains mail recipients, each being separated by a
comma.public void setMessage(java.lang.String message)
message - the message of the mail.public void setFrom(java.lang.String from)
from - a String that contains the sender address.public java.lang.String getLang()
public void setLang(java.lang.String lang)
lang - The lang to set.