Integrating ECS/ie to other applications
ECS/integrated email has been designed to be integrated to AS/400 business application systems. ECS/ie is supplied with easy to use application program interfaces (API's) in the form of AS/400 commands:
IESNDEMAIL - ECS/ie Send email from AS/400
This API is for sending simple email messages from an AS/400 or automatically from a program executing on the AS/400. The email subject and body text can be manipulated from the AS/400.
The command "IESNDEMAIL" requires four parameters:
Example of the ECS/ie API "IESNDEMAIL" executed from an AS/400 command line:
Example of the ECS/ie API "IESNDEMAIL" executed within a CL program:
IESNDEMAIL NAME('John Smith') EMAIL('firstname.lastname@example.org') SUBJECT(ECS/integrated email example') MESSAGE('Hi John, This is an example of a message sent using the ECS/ie API.')
IESNDF - ECS/ie Send AS/400 file as email attachment
This API is for sending AS/400 database files as Excel compatible comma delimited (CSV) email attachments or as text files (flat files). This command can be used to trigger the transmission of emails containing AS/400 database files from an AS/400 command line or automatically within a program running on the AS/400. The email subject, body text., file name & file type can be manipulated from the AS/400.
The command "IESNDF" requires the following parameters:
Example of the ECS/ie API "IESNDF" executed from an AS/400 command line:
Example of the ECS/ie API "IESNDF" executed within a CL program:
IESNDF FILE(APPLIB/CUSTMAST) HEADINGS(*FIELDDESC) +
NAME('John smith') +
SUBJECT('Customer Master Listing') +
MESSAGE('Please find attached the latest +
Customer Master listing as an +
Excel compatible file.')
Note: Ensure that the ECS/ie AS/400 library (ECSIE) exists within library list when executing these commands.
<<<<< Back to Main Menu <<<<<
Copyright © 1998-2003 Electronic Commerce Solutions All rights reserved.
ECS/integrated email & ECS/ie are trademarks of Electronic Commerce Solutions, Ltd. Other brand names and product names used in this document are the trademarks and trade names of their respective holders and may be registered.