|
-
April 19th, 1999, 09:00 AM
#1
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.
-
April 19th, 1999, 03:31 PM
#2
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);
-
April 19th, 1999, 08:10 PM
#3
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
-
April 20th, 1999, 11:54 PM
#4
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.
-
April 21st, 1999, 01:46 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|