MailMessage Class
- public class MailMessage
extends Object
implements Serializable
Class to represent an email message and it's supporting data.
-
Hierarchy
-
Object
MailMessage
-
All Implemented Interfaces
-
Serializable
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailMessage
public MailMessage()
addHeader(String, String) Method
public void addHeader(String
name,
String
value)
getFrom() Method
public String
getFrom()
Get the value of from.
Returns
- Value of from.
getHeaders() Method
public Map
getHeaders()
Get the value of headers.
Returns
- Value of headers.
getMessageText() Method
public String
getMessageText()
Get the value of messageText.
Returns
- Value of messageText.
getRecipients() Method
public MailRecipients
getRecipients()
Get the value of recipients.
Returns
- Value of recipients.
getSubject() Method
public String
getSubject()
Get the value of subject.
Returns
- Value of subject.
setFrom(String) Method
public void setFrom(String
v)
Set the value of from.
Parameters
-
v
- Value to assign to from.
setHeaders(Map) Method
public void setHeaders(Map
v)
Set the value of headers.
Parameters
-
v
- Value to assign to headers.
setMessageText(String) Method
public void setMessageText(String
v)
Set the value of messageText.
Parameters
-
v
- Value to assign to messageText.
setRecipients(MailRecipients) Method
public void setRecipients(MailRecipients
v)
Set the value of recipients.
Parameters
-
v
- Value to assign to recipients.
setSubject(String) Method
public void setSubject(String
v)
Set the value of subject.
Parameters
-
v
- Value to assign to subject.