Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP and Outlook
Message
From
30/10/2001 10:39:14
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
30/10/2001 10:27:22
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00575058
Message ID:
00575070
Views:
50
>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

Jerry,
I wouldn't care if it's Outlook or Outlook Express and use MAPI messaging. There is a sample in solution using MSMMess and MSMsess activex.
Or even you could directly ShellExecute a mailto.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform