Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP and Outlook
Message
From
30/10/2001 10:27:22
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
VFP and Outlook
Miscellaneous
Thread ID:
00575058
Message ID:
00575058
Views:
47
On my PC I have Outlook and Outlook Express. I have setup Outlook Express as my e-mail client.

Now, I am trying to write a VFP routine to send e-mail. The following example works just fine, however the email is sent to Outlook and NOT Outlook Express.

My questions are:
-How can I send email through Outlook Express? Is it possible?
-What is the recommended way to send email from VFP? Through Outlook or Outlook Express?
oOutLookObject = CreateObject("Outlook.Application")
oEmailItem = oOutLookObject.CreateItem(0)

WITH oEmailItem
.To = "myself@mymailaddress.com;someone@somewhere.com"
.Subject = "Subject"
.Importance = 0
.Body = "Body"
.Send
ENDWITH

RELEASE oEmailItem
RELEASE oOutLookObject
Thanks,

Jerryt
Next
Reply
Map
View

Click here to load this message in the networking platform