Page History
...
- to invoke the Wizard that is available from the job properties tab in the Configuration view and to select the JITL SQLExecutorJob MailJob and respective arguments from the Wizard
...
- to specify the
JITL
job class andcom.sos.jitl.jobs.mail.MailJob
Java class name, then add arguments what to send and where to send mail as explained from the below documentation.
Example
Download: pdwNotificationSOSMailPlainText.json
You can use the job wizard like this:
...
- From the list of available job templates select the MailJob.
Then hit the "Next" button to make the job wizard display available job variablesarguments:
Explanation:
- Required job variables arguments include the
to
variable argument to specify the recipient of mail. - Any other variables arguments are optional provided that a job resource is used that specifies connection details to your mail server, see below. Otherwise individual settings such as the SMTP host, SMTP port etc. can be specified from variablesarguments.
- Select the check box provided with each job variable argument if you want this variable argument to be added to the arguments of the mail job.
When hitting the "Submit" button the wizard adds the required variables arguments to your job that should look like this:
...
A number of settings for sending mail most probably carry the same values when used for different mail jobs. This includes e.g. use of the SMTP host, SMTP port etc.
...
With a job resource being created and deployed it can be assigned the JITL MailJob
to populate the job's arguments from the job resource like this:
Use of Arguments
Documentation
Job Documentation: https://www.sos-berlin.com/doc/JS7-JITL/MailJob.xml
The The com.sos.jitl.jobs.mail.MailJob class accepts the following arguments:
...
Name | Required | Default Value | Purpose |
---|---|---|---|
to | yes | list of mail recipient's e-mail address, multiple e-mail addresses are separated by comma | |
| no | e-mail address used for sending mail | |
| no | the free-text name of the account that sends mail | |
| no | if no replies should be accepted then typically use an e-mail address such as | |
| no | e-mail address of carbon copy recipient, multiple e-mail addresses are separated by comma | |
bcc | no | e-mail address of blind carbon copy recipient, multiple e-mail addresses are separated by comma | |
subject | yes | the mail subject, consider to use ASCII 7bit characters | |
body | yes | the mail body specified as plain text or HTML depending on the content_type setting | |
content_type | no | text/plain | a content type text/plain specifies plain text mail, a content type text/html specifies use of HTML mails. |
encoding | no | 7bit | the character encoding of subject and body, by default ASCII 7bit is used |
charset | no | iso-8859-1 | by default Latin 1 (iso-8859-1) is used |
attachment | no | the path to a file to be attached, multiple files are separated by comma | |
attachment_content_type | no | application/octet-stream | the attachment content-type typically allows binary files |
attachment_encoding | no | Base64 | any attached files are encoded with printable base64 characters |
attachment_charset | no | iso-8859-1 | by default Latin 1 (iso-8859-1) is used |
mail.smtp.host | yes | the hostname or IP address of the SMTP server | |
mail.smtp.port | no | 25 | the port of the SMTP server |
mail.smtp.user | no | the user account to be used in case that the SMTP server requires authentication | |
mail.smtp.password | no | the password to be used in case that the SMTP server requires authentication | |
mail.smtp. ... | no | any additional Java properties can be used as applicable to the JavaMail package |
Further
...
Resources
- Job Documentation:https://www.sos-berlin.com/doc/JITL/JobSchedulerManagedMailJob.xmlJS7 - Job Resources