|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MailAction
Using an email template at flow chart construction time, constructs and sends a concrete email at runtime. The mail action sends email through an SMTP mail server.
Internally, email addresses are created by passing the email address text through the javax.mail.internet.InternetAddress class, which is part of the JavaMail API. Consequently, email addresses in the following forms can be used through the mail action:
Method Summary | |
---|---|
java.util.List<java.net.URL> |
getAttachments()
Returns the mail attachments for this mail. |
java.util.List<java.lang.String> |
getBccAddresses()
Returns the BCC addresses for this mail. |
java.lang.String |
getBody()
Sets the contents of the email message. |
java.lang.String |
getBodyFooter()
Returns the end of the body of this mail. |
java.lang.String |
getBodyHeader()
Returns the beginning of the body of this mail. |
java.util.Properties |
getBodyProperties()
Returns substitution properties that are referenced by the mail body. |
java.util.List<java.lang.String> |
getCcAddresses()
Returns the CC addresses for this mail. |
MailContentType |
getContentType()
Returns the email content type for this mail. |
java.util.Properties |
getExtraHeaders()
Returns additional mail headers that accompany this mail. |
java.lang.String |
getFromAddress()
Returns the FROM address for this mail. |
java.lang.String |
getMailServer()
Returns the name of the mail server through which this mail is sent. |
java.lang.String |
getPassword()
Returns the password that will be used to authenticate with the mail server. |
int |
getPort()
Returns the port that will be used to connect to the mail server. |
boolean |
getSsl()
Returns whether or not this action will use SSL to connect to the mail server. |
java.lang.String |
getSubject()
Returns the subject of this mail. |
java.util.List<java.lang.String> |
getToAddresses()
Returns the TO addresses for this mail. |
java.lang.String |
getUsername()
Returns the username that will be used to authenticate with the mail server. |
void |
setAttachments(java.util.List<java.net.URL> attachments)
Sets the mail attachments for this mail. |
void |
setBccAddresses(java.util.List<java.lang.String> bccAddresses)
Sets the BCC addresses for this mail. |
void |
setBody(java.lang.String body)
Sets the contents of the email message. |
void |
setBodyFooter(java.lang.String bodyFooter)
Sets the end of the body of this mail. |
void |
setBodyHeader(java.lang.String bodyHeader)
Sets the beginning of the body of this mail. |
void |
setBodyProperties(java.util.Properties bodyProperties)
Sets substitution properties that are referenced by the mail body. |
void |
setCcAddresses(java.util.List<java.lang.String> ccAddresses)
Sets the CC addresses for this mail. |
void |
setContentType(MailContentType mailContentType)
Sets the email content type for this mail. |
void |
setExtraHeaders(java.util.Properties extraHeaders)
Sets additional mail headers that accompany this mail. |
void |
setFromAddress(java.lang.String fromAddress)
Sets the FROM address for this mail. |
void |
setMailServer(java.lang.String mailServer)
Sets the name of the mail server through which this mail is sent. |
void |
setPassword(java.lang.String password)
Sets the password that will be used to authenticate with the mail server. |
void |
setPort(int port)
Sets the port that will be used to connect to the mail server. |
void |
setSsl(boolean ssl)
Sets whether or not to use SSL for the connection to the mail server. |
void |
setSubject(java.lang.String subject)
Sets the subject of this mail. |
void |
setToAddresses(java.util.List<java.lang.String> toAddresses)
Sets the TO addresses for this mail. |
void |
setUsername(java.lang.String username)
Sets the username that will be used to authenticate with the mail server. |
Methods inherited from interface flux.runtimedatamap.RuntimeDataMap |
---|
getRuntimeDataMap, setRuntimeDataMap |
Method Detail |
---|
java.util.List<java.net.URL> getAttachments() throws EngineException
EngineException
- If a system error occurs.java.util.List<java.lang.String> getBccAddresses()
java.lang.String getBody()
getBodyProperties()
,
setBodyProperties(java.util.Properties)
java.lang.String getBodyFooter()
java.lang.String getBodyHeader()
java.util.Properties getBodyProperties()
java.util.List<java.lang.String> getCcAddresses()
MailContentType getContentType()
java.util.Properties getExtraHeaders()
java.lang.String getFromAddress()
java.lang.String getMailServer()
java.lang.String getPassword()
int getPort()
boolean getSsl()
java.lang.String getSubject()
java.util.List<java.lang.String> getToAddresses()
java.lang.String getUsername()
void setAttachments(java.util.List<java.net.URL> attachments)
attachments
- The mail attachments for this mail.void setBccAddresses(java.util.List<java.lang.String> bccAddresses)
bccAddresses
- The BCC addresses for this mail.void setBody(java.lang.String body)
body
- The contents of the email message.getBodyProperties()
,
setBodyProperties(java.util.Properties)
void setBodyFooter(java.lang.String bodyFooter)
bodyFooter
- The end of the body of this mail.void setBodyHeader(java.lang.String bodyHeader)
bodyHeader
- The beginning of the body of this mail.void setBodyProperties(java.util.Properties bodyProperties)
bodyProperties
- Substitution properties that are referenced by the
mail body.void setCcAddresses(java.util.List<java.lang.String> ccAddresses)
ccAddresses
- The CC addresses for this mail.void setContentType(MailContentType mailContentType)
mailContentType
- The email content type for this mail.void setExtraHeaders(java.util.Properties extraHeaders)
extraHeaders
- Additional mail headers that accompany this mail.void setFromAddress(java.lang.String fromAddress)
fromAddress
- The FROM address for this mail.void setMailServer(java.lang.String mailServer)
mailServer
- The name of the mail server through which this mail is
sent.void setPassword(java.lang.String password)
password
- The password that will be used to authenticate with the
mail server.void setPort(int port)
port
- The port that will be used to connect to the mail server.void setSubject(java.lang.String subject)
subject
- The subject of this mail.void setSsl(boolean ssl)
ssl
- Whether or not to use SSL for the connection to the mail server.void setToAddresses(java.util.List<java.lang.String> toAddresses)
toAddresses
- The TO addresses for this mail.void setUsername(java.lang.String username)
username
- The username that will be used to authenticate with the
mail server.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |