Hi, I will check out the links provided, but in the meantime,
Searching my maps again, I suddenly found this ‘mailcode.prg’ that
I must have downloaded from UT quite a while ago.
It works just as the doctor ordered, except I am never satisfied:
I have tried to point to a text file like: loEmailBody = text.doc
But that doesn’t work.
Is there any method that allows for insertion of a text file into the msg body,
Or will I have to insert the text lines one by one by creating a string with cr/lf’s, like
‘first line’+chr(10)+chr(13) ;
+ ‘second line’
and so on?
loOutlook = createobject('outlook.application')
loEmailItem = loOutlook.CreateItem(0)
loEmailItem.Attachments.Add("c:\autoexec.bat")
loEmailItem.To = "
rolf.aalberg@c2i.net"
loEmailItem.Subject = "Here is the file"
loEmailItem.Body = "attached is the file"
loEmailItem.Send
release loOutlook
Rolf