Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending Outlook message from VFP
Message
 
 
To
21/09/2005 15:05:46
Todd Cottengim
Alpine Land Information Services
Redding, California, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01051747
Message ID:
01051898
Views:
8
Hi Todd,

What message is doing in the Outbox? Why it wasn't send?
I ran your code and body text was included as it should.

>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
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform