Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP and Outlook
Message
De
30/10/2001 10:39:14
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
30/10/2001 10:27:22
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00575058
Message ID:
00575070
Vues:
49
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform