>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