public class Mail extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
from
The sender of the mail
|
Hashtable<String,String> |
headers
All the mail headers defined for this mail object.
|
String |
text
The message body text
|
String |
to
The recipient of the mail
|
| Constructor and Description |
|---|
Mail(String to,
String from)
Create a Mail object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHeader(String header)
Retrieves the value of a mail header.
|
void |
setBcc(String bcc)
Sends the message to all persons mentioned in the BCC list.
|
void |
setCc(String cc)
Sends the message to all persons mentioned in the CC list.
|
void |
setComment(String comment)
Adds a comment to the mail.
|
void |
setDate()
Sets the time of the mail
|
void |
setDate(String date)
Sets given time to the mail
|
void |
setFrom(String from)
Tells the mail from who the mail is coming.
|
String |
setHeader(String header,
String value)
Sets a mail header to a fixed value
|
void |
setReplyTo(String reply)
Sets the Reply-to address
|
void |
setSubject(String subject)
Sets the subject of the mail
|
void |
setText(String text)
Set the mail message text.
|
void |
setTo(String to)
Tells the mail for who the mail is.
|
String |
toString()
Returns a description of the mail object.
|
public String to
public String from
public String text
public void setText(String text)
public void setSubject(String subject)
public void setDate()
public void setDate(String date)
public void setFrom(String from)
from field.public void setCc(String cc)
public void setBcc(String bcc)
public void setComment(String comment)
public void setReplyTo(String reply)
public String setHeader(String header, String value)
null if not earlier defined)public String getHeader(String header)
null if not defined)MMBase 1.9-SNAPSHOT - ${javadoctimestamp}