Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Driving Outlook with VFP7
Message
From
07/02/2002 02:44:46
 
 
To
06/02/2002 17:13:50
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:
00616445
Views:
26
And that won't work, Arden.

You said in your original post that you were using Outlook Express. Outlook Express does not expose an interface; CreateObject() won't work.

For this solution to work for you, you either have to use Outlook (NOT Express) or look at a MAPI solution. Nigel Coates has an excellent MAPI class here in the Files section.


>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
>**********************************************************
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform