public class EmailOptions
extends java.lang.Object
Constructor and Description |
---|
EmailOptions() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBody()
Gets the body of the email
|
java.lang.Object[] |
getBodyParams()
Gets parameters that will be formated into body text
|
java.lang.String |
getBodyTextKey()
Gets the key that is used to locate the application string for body
|
Context |
getContext()
Gets the API context
|
java.lang.String |
getFrom()
Gets the from email address
|
boolean |
getIgnoreError()
Gets whether to continue sending out emails when an error occurred
|
java.lang.StringBuffer |
getLinkBuffer()
Gets the string buffer for a URL that points to the object in OpenPages
|
java.util.Locale |
getLocale()
Gets the locale to get translated application texts for subject and body
|
java.lang.String |
getPassword()
Gets the password for authenticating into the SMTP server.
|
java.lang.String |
getPort()
Gets the port number that identifies the SMTP server port.
|
java.lang.String |
getRecipients()
Gets the recipients email addresses
|
int |
getRetryTimes()
Gets the retry times to send email.
|
java.lang.String |
getSecureType()
Gets the security type of the SMTP server.
|
java.lang.String |
getSmtpServer()
Gets the SMTP server host or IP address.
|
java.lang.String |
getSubject()
Gets the subject of the email
|
java.lang.Object[] |
getSubjectParams()
Gets parameters that will be formated into subject text
|
java.lang.String |
getSubjectTextKey()
Gets the key that is used to locate the application string for a subject
|
int |
getTimeout()
Gets the time out (in seconds) to send email.
|
java.lang.String |
getUsername()
Gets the user name for authenticating into the SMTP server.
|
void |
setBody(java.lang.String body)
Sets the body of the email
|
void |
setBodyParams(java.lang.Object[] bodyParams)
Sets parameters that will be formated into body text
|
void |
setBodyTextKey(java.lang.String bodyTextKey)
Sets the key that is used to locate the application string for body
|
void |
setContext(Context context)
Sets the API context
|
void |
setFrom(java.lang.String from)
Sets the from email address.
|
void |
setIgnoreError(boolean ignoreError)
Sets whether to continue sending out emails when an error occurred
|
void |
setLinkBuffer(java.lang.StringBuffer linkBuffer)
Sets the string buffer for a URL that points to the object in OpenPages
|
void |
setLocale(java.util.Locale locale)
Sets the locale to get translated application texts for subject and body
|
void |
setPassword(java.lang.String password)
Sets the password for authenticating into the SMTP server.
|
void |
setPort(java.lang.String port)
Sets the port number that identifies the SMTP server port.
|
void |
setRecipients(java.lang.String recipients)
Sets the recipients email addresses.
|
void |
setRetryTimes(int retryTimes)
Sets the retry times to send email.
|
void |
setSecureType(java.lang.String secureType)
Sets the security type of the SMTP server.
|
void |
setSmtpServer(java.lang.String smtpServer)
Sets the SMTP server host or IP address.
|
void |
setSubject(java.lang.String subject)
Sets the subject of the email
|
void |
setSubjectParams(java.lang.Object[] subjectParams)
Sets parameters that will be formated into subject text
|
void |
setSubjectTextKey(java.lang.String subjectTextKey)
Sets the key that is used to locate the application string for a subject
|
void |
setTimeout(int timeout)
Sets the time out (in seconds) to send email.
|
void |
setUsername(java.lang.String username)
Sets the user name for authenticating into the SMTP server.
|
public java.lang.String getFrom()
public void setFrom(java.lang.String from)
from
- the from email addresspublic java.lang.String getRecipients()
public void setRecipients(java.lang.String recipients)
recipients
- the recipients email addresses. Could be a
comma-separated string of multiple recipients.public java.lang.String getSubjectTextKey()
public void setSubjectTextKey(java.lang.String subjectTextKey)
subjectTextKey
- the key is that used to locate the application string for a subjectpublic java.lang.Object[] getSubjectParams()
public void setSubjectParams(java.lang.Object[] subjectParams)
subjectParams
- parameters that will be formated into subject text.public java.lang.String getBodyTextKey()
public void setBodyTextKey(java.lang.String bodyTextKey)
bodyKey
- the key that is used to locate the application string for bodypublic java.lang.Object[] getBodyParams()
public void setBodyParams(java.lang.Object[] bodyParams)
bodyParams
- parameters that will be formated into body textpublic java.lang.String getSubject()
public void setSubject(java.lang.String subject)
subject
- the subject of the emailpublic java.lang.String getBody()
public void setBody(java.lang.String body)
body
- the body of the emailpublic boolean getIgnoreError()
public void setIgnoreError(boolean ignoreError)
ignoreError
- whether to continue sending out emails when an error occurredpublic Context getContext()
public void setContext(Context context)
context
- the API contextpublic java.lang.StringBuffer getLinkBuffer()
public void setLinkBuffer(java.lang.StringBuffer linkBuffer)
linkBuffer
- the string buffer for a URL that points to the object in OpenPagespublic java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
locale
- the locale to get translated application texts for subject and bodypublic java.lang.String getSmtpServer()
setSmtpServer(String)
, this function may return null,
which means the system will look up the registry setting.public void setSmtpServer(java.lang.String smtpServer)
smtpServer
- public java.lang.String getSecureType()
setSecureType(String)
for the available values.public void setSecureType(java.lang.String secureType)
secureType
- the security type of the SMTP serverpublic java.lang.String getUsername()
public void setUsername(java.lang.String username)
username
- the user name for authenticating into the SMTP server.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- the password for authenticating into the SMTP serverpublic java.lang.String getPort()
public void setPort(java.lang.String port)
port
- the port number identifies the SMTP server port.public int getTimeout()
public void setTimeout(int timeout)
timeout
- the time out (in seconds) to send emailpublic int getRetryTimes()
public void setRetryTimes(int retryTimes)
retryTimes
- the retry times to send email
Licensed Materials - Property of IBM
© Copyright IBM Corp. 2013, 2018. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.