Click to See Complete Forum and Search --> : Sending Email using VC++ through Outlook Express
Zulfi Khan
April 19th, 1999, 09:00 AM
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.
April 19th, 1999, 03:31 PM
See if this is what you want?
// First try ShellExecute()
HINSTANCE result = ShellExecute(NULL, _T("open"), "mailto:me@email.com", NULL,NULL, showcmd);
April 19th, 1999, 08:10 PM
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
Zulfi Khan
April 20th, 1999, 11:54 PM
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.
Mustafa Saqib
April 21st, 1999, 01:46 AM
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.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.