CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Location
    Pakistan
    Posts
    207

    Sending Email using VC++ through Outlook Express

    I am using Outlook Express as a default Email program. How can I pop up OutLook Express Window to send an Email to a known address using a VC++
    program. I have VC++5 Enterprise version and I am working in Windows NT environment.


  2. #2
    Guest

    Re: Sending Email using VC++ through Outlook Express

    See if this is what you want?

    // First try ShellExecute()
    HINSTANCE result = ShellExecute(NULL, _T("open"), "mailto:[email protected]", NULL,NULL, showcmd);



  3. #3
    Guest

    Re: Sending Email using VC++ through Outlook Express

    Outlook express actually implements a 'Simple MAPI' interface. If Outlook Express is configured as the default mail client, you can access it using SimpleMapi.

    Hope that helps.
    pj



  4. #4
    Join Date
    Apr 1999
    Location
    Pakistan
    Posts
    207

    Re: Sending Email using VC++ through Outlook Express

    Hi,
    It worked. Thanks for your help. Now can you tell how I can send a message stored in a buffer using Outlook Express? This time I dont want to pop up the Outlook Express window from my program.
    Tnaks again.
    Zulfi.


  5. #5
    Join Date
    Apr 1999
    Posts
    2

    Re: Sending Email using VC++ through Outlook Express

    By setting the last parameter of ShellExecute function to SW_HIDE

    But remember one thing that it is not neccessary ShellExecute will launch Outlook.
    mailto: protocol launches default email program so if the users default email program is
    Eudora, say, then I think Eudora will be launched
    in place of Outlook.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured