deeboss
31st August 2001, 16:37
I am so excited to find a group of Baan techies, I can hardly stand it!!! James, thanks again for yesterday's answer! Today's question:

I use the following code to send an email from within Baan IV:

if send.email then
msg = "mailx -s """ & subject & """ " & email.list & " < " &
temp.file
msg = strip$(msg)
ret = shell(msg, SHELL_BACKGROUND)
endif


...where subject is a variable holding the Subject,
email.list is a variable holding the, yes, email list of recipients, and
temp.file is a variable holding the body of the email.

Does anyone know of a way I can send an email with a file attachment?

James
31st August 2001, 16:45
What Operating System are you using? (and the version)

deeboss
31st August 2001, 17:00
HPUX 11.0

patvdv
31st August 2001, 17:12
Can't say I know how to do it in Baan but here's how to do it in UNIX:


uuencode inputfilename outputfilename | mailx -s "subject" emailaddress

I leave it up to you to hack that into Baan dee :)