sending mail under progress

infosuite

New Member
Hi All,

I have progress 8.3E on NT and UNIX. I would like to send
a mail from progress editor and attach file to this mail.

Under NT, I have used Mapi32.p but under UNIX, i don't find the solution.... Does anyone have any ideas.

Thanks...
 

Stefan De Leyn

New Member
The trick is to use the available UNIX - commands :
For sending an e-mail we use the below syntax. You will need to look in a UNIX-manual however to look up all the possibilities/options of the uuencode-command.
Below example sends a file as a simple txt-file to an employee when an order he inputted is being processed by our stores.
The cMessagefile is basically a string that is being build up which represents the location of the file. The file itself can be filled with any text you wish by using the 'OUTPUT TO' and 'EXPORT' - ProgressCommands.

/* Send the file to the employee */
OS-COMMAND SILENT uuencode VALUE(cMessagefile) Message.txt|mail -s 'Registered_order' VALUE(employee.login).

/* delete the file afterwards as it is no longer required */
OS-DELETE VALUE(cMessagefile).
 
Top