Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Laumching Oulook & Attaching a file to email from VFP
Message
 
À
19/11/2001 00:07:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00583326
Message ID:
00583327
Vues:
46
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform