Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to put mail in OE or OEX from VFP6?
Message
From
27/01/2003 08:11:33
 
 
To
27/01/2003 07:58:07
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00745656
Message ID:
00745695
Views:
25
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform