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.
Printable View
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.
See if this is what you want?
// First try ShellExecute()
HINSTANCE result = ShellExecute(NULL, _T("open"), "mailto:[email protected]", NULL,NULL, showcmd);
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
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.
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.