Using the SEND_REQ Block for Electronic Mail Notification
Original instructions
SEND_REQ Representation
To send an email message from the application, use a SEND_REQ block.
ADR
The ADR must use the following address format:
{network.station}rack.module.channel.SYS
For example, if an ETY module has the Xway address {10.1} and resides in slot 4 in the rack, its ADR would be:
{10.1}0.4.0.SYS
NOTE: An ADR of {0.254}.0.4.0.SYS also works, where {0.254} represents my address.
For the TSX P57 6634/5634/4634, use the ADR {0.254}0.0.3.SYS.
The ADR may be used to convert from the string format to the INT array expected by the block.
CODE
Use the write object request function code (0x37) for a SEND_REQ block. The expected success code is 0xFE, and the error code is 0xFD.
EMIS
The Data_to_Send contains the address of the buffer with the data to put in the body of the email. This information is preceded by a header with the following information:
Header Information
Value
Byte
Register
Segment
0x96
1
1
Type
0x15
2
Address
N/A
3
2
4
Number (n1) of characters in the email
0
5
3
< 240
6
Mail header
{1, 2, 3}
7
4
< (n1 - 2)
8
The following (n1 - 2)/2 words (up to a maximum of 119)) contain the data in ASCII format that will be copied into the email message. The first n2 characters are added to the configured email subject and the rest are part of the email body:
GEST
The fourth parameter of the management table must contain the size of the data buffer and must be set before you use the SEND_REQ block.
RECP
The Received_Data request does not return any data.