chilloutdude
21st June 2002, 03:06
Hi,
I know this question has come up several times. I would like to know how to send email through a baan 4GL program(I want send an error file as an attachment to a particular user), is there a specific command to do that. we are on baan5b on windows NT and email server is exchange.

thanks

NPRao
21st June 2002, 07:17
You can use the BaaN's CMF - Common Message Facility (eMessage Connector API)

Refer to the functions in the tools manual -

Synopsis
long cmf.setAttachmentFilename(long attachment, string filename [, string displayname])
Description
Sets the physical filename of the attachment identified by attachment to the value filename. Sets the human-readable filename to displayname. If displayname is not supplied, then the readable filename is set to the physical filename.
Arguments
attachment The attachment identification.
filename The physical filename.
displayname The name of the file that is displayed. If displayname is not supplied, then the physical filename is used.
Return
0 Success
-1 Invalid attachment identification
© 1998 Baan Development B.V. All rights reserved