Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Laumching Oulook & Attaching a file to email from VFP
Message
 
 
To
19/11/2001 00:07:34
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00583326
Message ID:
00583327
Views:
45
This message has been marked as the solution to the initial question of the thread.
>Is there a command line I can use from within vfp to launch Outlook and attach a file to an email, all from within VFP

Here it is.
loOutlook = createobject('outlook.application')
loEmailItem = loOutlook.CreateItem(0)
loEmailItem.Attachments.Add("c:\autoexec.bat")
loEmailItem.To = "bgates@macrohard.com"
loEmailItem.Subject = "Here is the file"
loEmailItem.Body = "attached is the file"
loEmailItem.Send
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform