public class PostmarkMessageBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<Attachment> |
attachments |
protected String |
bccAddress |
protected String |
ccAddress |
protected String |
fromAddress |
protected List<NameValuePair> |
headers |
protected String |
replyToAddress |
protected String |
tag |
protected String |
toAddress |
| Modifier | Constructor and Description |
|---|---|
|
PostmarkMessageBase(PostmarkMessageBase message) |
protected |
PostmarkMessageBase(String fromAddress,
String toAddress,
String replyToAddress,
String ccAddress,
String tag) |
protected |
PostmarkMessageBase(String fromAddress,
String toAddress,
String replyToAddress,
String ccAddress,
String tag,
List<NameValuePair> headers) |
protected |
PostmarkMessageBase(String fromAddress,
String toAddress,
String replyToAddress,
String ccAddress,
String bccAddress,
String tag,
List<NameValuePair> headers) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(Attachment attachment) |
void |
clean() |
List<Attachment> |
getAttachments() |
String |
getBccAddress() |
String |
getCcAddress() |
String |
getFromAddress() |
List<NameValuePair> |
getHeaders() |
String |
getReplyToAddress() |
String |
getTag() |
String |
getToAddress() |
void |
setAttachments(List<Attachment> attachments)
Lets you attach file.
|
void |
setBccAddress(String bccAddress) |
void |
setCcAddress(String ccAddress) |
void |
setFromAddress(String fromAddress) |
void |
setHeaders(List<NameValuePair> headers) |
void |
setReplyToAddress(String replyToAddress) |
void |
setTag(String tag) |
void |
setToAddress(String toAddress) |
void |
validate() |
protected String fromAddress
protected String toAddress
protected String replyToAddress
protected String ccAddress
protected String bccAddress
protected String tag
protected List<NameValuePair> headers
protected List<Attachment> attachments
protected PostmarkMessageBase(String fromAddress, String toAddress, String replyToAddress, String ccAddress, String bccAddress, String tag, List<NameValuePair> headers)
protected PostmarkMessageBase(String fromAddress, String toAddress, String replyToAddress, String ccAddress, String tag, List<NameValuePair> headers)
protected PostmarkMessageBase(String fromAddress, String toAddress, String replyToAddress, String ccAddress, String tag)
public PostmarkMessageBase(PostmarkMessageBase message)
public void clean()
public void validate()
throws PostmarkException
PostmarkExceptionpublic String getFromAddress()
public void setFromAddress(String fromAddress)
fromAddress - The email address the message is sent frompublic String getToAddress()
public void setToAddress(String toAddress)
toAddress - The email address the message is sent topublic String getCcAddress()
public void setCcAddress(String ccAddress)
ccAddress - The email address the message is sent topublic String getBccAddress()
public void setBccAddress(String bccAddress)
bccAddress - The email address a blind carbon copy of the message is sent topublic String getReplyToAddress()
public void setReplyToAddress(String replyToAddress)
replyToAddress - The reply-to email address of the messagepublic String getTag()
public void setTag(String tag)
tag - The tag (an optional category) that is associated with this mailpublic List<NameValuePair> getHeaders()
public void setHeaders(List<NameValuePair> headers)
headers - A map of all the email headerspublic List<Attachment> getAttachments()
public void setAttachments(List<Attachment> attachments)
Attachment for details.attachments - list of attachmentspublic void addAttachment(Attachment attachment)
Copyright © 2017. All rights reserved.