Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Driving Outlook with VFP7
Message
De
06/02/2002 17:13:50
Arden Weiss
Liberty Computers Ltd.
Maryland, États-Unis
 
 
À
06/02/2002 13:02:48
Arden Weiss
Liberty Computers Ltd.
Maryland, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00616175
Message ID:
00616317
Vues:
32
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
**********************************************************
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform