Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending Outlook message from VFP
Message
De
21/09/2005 15:05:46
Todd Cottengim
Alpine Land Information Services
Redding, Californie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Sending Outlook message from VFP
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01051747
Message ID:
01051747
Vues:
57
I am attempting to send a message from my VFP app using Outlook. All the code looks good but there is not body text when I look at eh message in my outbox.

Any ideas?

Thanks for your help.
LOCAL loMail, loMessage

loMail    = CREATEOBJECT("Outlook.Application")
loMessage = loMail.CreateItem(0) && mail object

WITH loMessage
   .Recipients.Add("tcottengim@alpine-lis.com")
   .Subject = "Messaeg subject"
   .Body    = "Message body - Created: " + DTOC(DATE())  + " at " + TIME()

   .Send()
ENDWITH
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform