If you have the native AS/400 email server up and working, you can use the SNDDST command like below.
You could read your file using RPG or a CL and then issue this command in a CL program substituiting a variable in the LONGMSG parameter.
SNDDST TYPE(*LMSG) +
LONGMSG('long message could go here using a variable name')
Last Wiki Answer Submitted: January 30, 2009 3:23 pm by Willhud69205 pts.