Hitachi

JP1 Version 12 JP1/Automatic Operation Service Template Reference


4.2.5 Email notification plug-in

Function

This plug-in enables the connection to the SMTP server to transmit email with the specified recipient, subject, and body. In addition, editing the mail.plugin.retry.interval key of the user-specified properties file (config_user.properties) allows you to retry the operation if transmission fails.

Prerequisites for execution

Cautionary notes

Version

01.00.01

Tag

Mail, Notification

Return codes

Return code

Description

0

Ended normally.

65

The connection with the JP1/AO server failed. For example, the JP1/AO server might have stopped while the plug-in was executing.

66

The following user is mapped to the JP1 user:

  • A user who does not belong to the Administrators group.

  • A user other than the built-in Administrator who belongs to the Administrators group, in an environment with UAC enabled.

68

There is no information about the target job execution ID.

69

An environment variable of the task-processing engine could not be acquired.

70

The connection with the SMTP server failed.

78

Authentication failed.

79

Email transmission failed.

80

Task execution has stopped.

81

The plug-in was called in an invalid status.

82

The request message from the task-processing engine could not be correctly parsed.

83

The environment of the JP1/AO server is corrupted.

84

Information about the specified plug-in could not be obtained.

86

The specified property value is invalid.

127

Another error has occurred.

Properties list

The following table describes the properties.

Property key

Property name

Description

Default value

I/O type

Required

toAddress

To Addresses

Specify the email addresses of recipients to enter in the TO attribute, using no more than 1,024 characters. When specifying multiple addresses, separate them with commas.

--

Input

O

ccAddress

Cc Addresses

Specify the email addresses of recipients to enter in the CC attribute, using no more than 1,024 characters. When specifying multiple addresses, separate them with commas.

--

Input

O

bccAddress

Bcc Addresses

Specify the email addresses of recipients to enter in the BCC attribute, using no more than 1,024 characters. When specifying multiple addresses, separate them with commas.

--

Input

O

encodeType

Encoding

Specify the encoding of the email as one of the following:

  • us-ascii

  • iso-2022-jp

  • shift_jis

  • euc-jp

  • utf-8

utf-8

Input

R

mailSubject

Subject

Specify the subject line of the email using no more than 256 characters.

--

Input

O

mailBody

Body

Specify the body text of the email using no more than 1,024 characters.

--

Input

O

Related topics