public interface JobEmail
Job
implementation to send email using the
Identity Manager email notification template facility.Modifier and Type | Method and Description |
---|---|
JobResult[] |
checkConfig(java.util.Locale msgLocale)
Verify that the job is configured properly to send email.
|
JobResult |
sendMail(java.lang.String from,
java.lang.String replyTo,
java.lang.String[] to,
java.lang.String[] cc,
java.lang.String[] bcc,
DirectoryObject template,
java.util.Map replacementData,
java.lang.String encoding,
java.util.List customHeaders)
Send email based on an eDirectory notfMergeTemplate object that contains
the email body and the subject information.
|
JobResult |
sendMail(java.lang.String from,
java.lang.String replyTo,
java.lang.String[] to,
java.lang.String[] cc,
java.lang.String[] bcc,
java.lang.String subject,
java.lang.String body,
java.lang.String encoding,
java.util.List customHeaders,
boolean sendAsHTML)
Send email based on passed subject and email body.
|
JobResult[] checkConfig(java.util.Locale msgLocale)
JobResult
implementations if there is an error,
null
if everything appears to be configured correctly.JobResult sendMail(java.lang.String from, java.lang.String replyTo, java.lang.String[] to, java.lang.String[] cc, java.lang.String[] bcc, DirectoryObject template, java.util.Map replacementData, java.lang.String encoding, java.util.List customHeaders) throws java.lang.IllegalArgumentException
from
- SMTP email address for "From" field. If null
then the "from" value from the notfTemplateCollection
object specified for the job will be used.replyTo
- SMTP email address for "Reply to" field (may be null
)to
- array of primary recipient SMTP email addresses (may not be null
or empty)cc
- array of "CC" recipient SMTP email addresses (may be null
)bcc
- array of "BCC" recipient SMTP email addresses (may be null
)template
- notfMergeTemplate object containing email subject and body datareplacementData
- key-value pairs of strings containing replacement data for the templateencoding
- character encoding to use (may be null
)customHeaders
- list of String
s, each containing a custom SMTP header line (may be null
)null
)java.lang.IllegalArgumentException
- if one of the required parameters is null
, empty, or otherwise invalidJobResult sendMail(java.lang.String from, java.lang.String replyTo, java.lang.String[] to, java.lang.String[] cc, java.lang.String[] bcc, java.lang.String subject, java.lang.String body, java.lang.String encoding, java.util.List customHeaders, boolean sendAsHTML) throws java.lang.IllegalArgumentException
from
- SMTP email address for "From" field. If null
then the "from" value from the notfTemplateCollection
object specified for the job will be used.replyTo
- SMTP email address for "Reply to" field (may be null)to
- array of primary recipient SMTP email addresses (may not be null
or empty)cc
- array of "CC" recipient SMTP email addresses (may be null
)bcc
- array of "BCC" recipient SMTP email addresses (may be null
)subject
- email message subject linebody
- email message bodyencoding
- character encoding to use (may be null
)customHeaders
- list of String
s, each containing a custom SMTP header line (may be null
)sendAsHTML
- if true
, email is sent as HTML, if false
email is sent as plain text.null
)java.lang.IllegalArgumentException
- if one of the required parameters is null
, empty, or otherwise invalid