Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Outlook 200 and VFP 7.0

Outlook 200 and VFP 7.0

Outlook 200 and VFP 7.0


I want to know if it's possible to invoke the Outlook 2000 'New message' form from VFP 7.0 without opening Outlook at all (all the clients have Outlook on their machine).

Thanks in advance.


RE: Outlook 200 and VFP 7.0

Do you mean without automating Outlook? Or Just not show it?

You can send e-mail without using Outlook totally, either with MAPI sessions, or SMTP, or CDO.DLL.

RE: Outlook 200 and VFP 7.0


Ok. Here some more infos

I want to show the new message form by automating Outlook.

I tried some code ...

  loOutlook = CREATEOBJECT("Outlook.Application")
  loNameSpace = loOutlook.GetNamespace("MAPI")
  loMail = loNameSpace.GetDefaultFolder(4)

This will create a new Outlook instance, select the Outbox folder and show Outlook interface. But whant I want is to create a new message, set the e-mail addresses and show the 'New mail' form so my user can change senders, add comments and so on.



RE: Outlook 200 and VFP 7.0

I'm sure what you want to do. Show Outlook or not,

oOutLookObject = CreateObject("Outlook.Application")
oEmailItem = oOutLookObject.CreateItem(MAILITEM)

WITH oEmailItem
   .Subject = "Automation sample"
   .Importance = 0
   .Body = "This is easy!"

RELEASE oEmailItem
RELEASE oOutLookObject

RE: Outlook 200 and VFP 7.0

Sorry, MAILITEM should be set to 0

At the begining

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close