Mail Interface

Mail Interface after completion of the Send or Receive processing

Email messages can be transmitted when the Send processing or the Receive processing is completed.

The subject line (Title), addresses (Address and CC), and body message (Text) of an email can be specified. The Send file, Receive file, and any file (file size up to 20KB) can be attached to the email. When a file is attached, the contents of 'Text' registered in the Mail Interface Information is also transmitted as an attached file.

When the Mail Interface function is used, specify the Mail Interface ID that is registered in the Mail Interface Information for Mail Interface ID (MAILID) in the Send Management Information or the Receive Management Information.

Note

When you execute Mail Interface processing, set the environment of Mail Interface in advance. Refer to System Environment Settings for details.

Replacement of environment variables

If environment variables are used in the Mail Interface Information, the information of the transfer is added to the email when the Mail Interface processing starts after the Send processing or the Receive processing is completed. The list of environment variables that can be used is as follows.

Table 2.3 List of Environment Variables

Variable Name

Replacement Rule

Post-send

Post-receive

$HOST

Replaced with the Send/Receive Host Name

$FILEID

Replaced with the File ID

$COUNT

Replaced with the Send/Receive Record Count

$FILENM

Replaced with the Send/Receive File Name

$STATUS

Send/Receive Status code

Refer to Error Codes and Messages for details about status codes.

$DETAIL

Send/Receive Detail Code

Refer to Error Codes and Messages for details about detailed codes.

$SDATE

Replaced with Send/Receive Start Date (Format: YYMMDD)

$EDATE

Replaced with Send/Receive End Date (Format: YYMMDD)

$STIME

Replaced with Send/Receive Start Time (Format: HHMMSS)

$ETIME

Replaced with Send/Receive End Time (Format: HHMMSS)

$SDATE2

Replaced with Send/Receive Start Date (Format: YYYYMMDD) (*1)

$EDATE2

Replaced with Send/Receive End Date (Format: YYYYMMDD) (*1)

$MSG0

Replaced with Message 0

$MSG1

Replaced with Message 1

$MSG2

Replaced with Message 2

$MSG3

Replaced with Message 3

$MSG4

Replaced with Message 4

$MSG5

Replaced with Message 5

$MSGL0

Replaced with Long Message 0

$MSGL1

Replaced with Long Message 1

:

Available

*1

:

The order of the year, month, and day in dates reflects the order of the date format specified for Date Format (datefmt) in the System Environment Settings.

<Replacement example>

Table 2.4 Example of Replacement

Items

Value

Transfer destination host name

HOST0001

File ID

FILEID01

Status code

0

<Example of the use of environment variables in Text>

The result of transfer to '$HOST' for the file ID ('$FILEID') is '$STATUS.'

<Text after replacement>

The result of transfer to HOST0001 for the file ID (FILEID01) is 0.

Note
  • Emails are not sent when sending is canceled on the sending side or when receiving is canceled on the receiving side.

  • Emails are not sent when a receive process multiplex level error occurs at the receiving side.

  • Use a mail software that supports MIME to read emails sent by HULFT.