Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Driving Outlook with VFP7
Message
From
06/02/2002 17:13:50
Arden Weiss
Liberty Computers Ltd.
Maryland, United States
 
 
To
06/02/2002 13:02:48
Arden Weiss
Liberty Computers Ltd.
Maryland, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00616175
Message ID:
00616317
Views:
30
I found the following link (using Google Search Engine)
http://www.tek-tips.com/gfaqs.cfm/lev2/4/lev3/27/spid/184/sfid/766
that contains just what I wanted. Hence, wanted to share my finding.


** How can I send an Email using OUTLOOK from VFP
**********************************************************
** by Subramanian.G (ramani)
** FoxAcc Software
** ramani_g@yahoo.com
**********************************************************
1. Outlook (2000 or 98 or 97) must be installed for this to work.

2. Save the following in a command button click event .. so that when you click this will be sent as an email
Or Save as prg file and run the file to send the email.

**********************************************************
o=createobject("outlook.application")
oitem=o.createitem(0)
oitem.subject="Email From VFP6"
oitem.to="ramani_g@yahoo.com"
oitem.body="This mail was sent from vfp using Outlook98"
oitem.Attachments.Add("MyFullPath+MyFile+Ext")
oitem.send
o=.null.
**********************************************************
** EOF **
Ramani (Subramanian.G), FoxAcc, ramani_g@yahoo.com
**********************************************************
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform