|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.Mail
public class Mail
This mail-object gives persons the functionality to create mail and send it with the SendMail-module.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
Mail(String to,
String from)
Create a Mail object. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Hashtable<String,String> headers
public String to
public String from
public String text
| Constructor Detail |
|---|
public Mail(String to,
String from)
to - the recipient of teh mailfrom - teh sender of the mail| Method Detail |
|---|
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 setTo(String to)
to 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)public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||