Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending Outlook message from VFP
Message
From
21/09/2005 15:05:46
Todd Cottengim
Alpine Land Information Services
Redding, California, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Sending Outlook message from VFP
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01051747
Message ID:
01051747
Views:
50
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
Next
Reply
Map
View

Click here to load this message in the networking platform