Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: excel chart Pin
David Crow17-Jun-05 6:23
David Crow17-Jun-05 6:23 
QuestionAPI Call to find the installed Default Email Client ?? Pin
Robert Palma Jr.17-Jun-05 5:59
Robert Palma Jr.17-Jun-05 5:59 
AnswerRe: API Call to find the installed Default Email Client ?? Pin
Ravi Bhavnani17-Jun-05 6:14
professionalRavi Bhavnani17-Jun-05 6:14 
GeneralRe: API Call to find the installed Default Email Client ?? Pin
Robert Palma Jr.17-Jun-05 6:24
Robert Palma Jr.17-Jun-05 6:24 
GeneralRe: API Call to find the installed Default Email Client ?? Pin
David Crow17-Jun-05 7:25
David Crow17-Jun-05 7:25 
GeneralRe: API Call to find the installed Default Email Client ?? Pin
Robert Palma Jr.17-Jun-05 8:07
Robert Palma Jr.17-Jun-05 8:07 
GeneralRe: API Call to find the installed Default Email Client ?? Pin
David Crow17-Jun-05 8:17
David Crow17-Jun-05 8:17 
GeneralRe: API Call to find the installed Default Email Client ?? Pin
Robert Palma Jr.17-Jun-05 10:07
Robert Palma Jr.17-Jun-05 10:07 
Hi David,

Here is what I tried:

//Shell execute test

//from David mailto:joe@something.com?subject=Test&attachment="c:\boot.ini"

sprintf(buf, "mailto:rpalma@mrtel.com?subject=test&attachment=\"c:\misc\a.txt\"");

ShellExecute(NULL,"open", buf,"","",SW_SHOWNORMAL);

I tried this on NT and Win2K.
I tried this on Eudora and Outlook 2003.

In all cases, the email client loads the 'to' address and the 'subject', but does not seem to know about the attachment.

I have been working on this since May.

Back in May Jim Twine kindly told me (in this forum) that he did not think I could do this with ShellExecute and that I would have to use MAPI.

I have not had success with MAPI so I have been looking at running the mail client from the command line. Outlook and Eudora seem to do this quite well. I just have to find out 'who' is the client and 'where' (directory) he is.

Actually I REALLY don't even want to specify the 'to' address or the 'subject'. I'd like the User to pick the 'to' address from his email-client-addressbook.

I would love to hear anymore thoughts on getting ShellExecute to work. It's seems quite simple and elegant and I use it all the time for other executables.

All the best, Smile | :)
Robert



GeneralRe: API Call to find the installed Default Email Client ?? Pin
David Crow17-Jun-05 10:13
David Crow17-Jun-05 10:13 
GeneralRe: API Call to find the installed Default Email Client ?? Pin
Robert Palma Jr.17-Jun-05 10:54
Robert Palma Jr.17-Jun-05 10:54 
GeneralRe: API Call to find the installed Default Email Client ?? Pin
David Crow17-Jun-05 17:02
David Crow17-Jun-05 17:02 
GeneralMessage Box Pin
Anonymous17-Jun-05 5:53
Anonymous17-Jun-05 5:53 
GeneralRe: Message Box Pin
RChin17-Jun-05 5:59
RChin17-Jun-05 5:59 
GeneralRe: Message Box Pin
Anonymous17-Jun-05 6:04
Anonymous17-Jun-05 6:04 
GeneralRe: Message Box Pin
Ravi Bhavnani17-Jun-05 6:22
professionalRavi Bhavnani17-Jun-05 6:22 
GeneralRe: Message Box Pin
ryuki17-Jun-05 6:58
ryuki17-Jun-05 6:58 
GeneralRe: Message Box Pin
Ravi Bhavnani17-Jun-05 7:27
professionalRavi Bhavnani17-Jun-05 7:27 
GeneralRe: Message Box Pin
James R. Twine17-Jun-05 7:33
James R. Twine17-Jun-05 7:33 
GeneralRe: Message Box Pin
Ravi Bhavnani17-Jun-05 7:37
professionalRavi Bhavnani17-Jun-05 7:37 
GeneralCHTMLView Flicker on resize Pin
HaraldS17-Jun-05 5:48
HaraldS17-Jun-05 5:48 
GeneralRe: CHTMLView Flicker on resize Pin
Shog917-Jun-05 11:57
sitebuilderShog917-Jun-05 11:57 
GeneralProcessWindowMessage and lResult Pin
McClamm17-Jun-05 5:13
McClamm17-Jun-05 5:13 
GeneralRe: ProcessWindowMessage and lResult Pin
Blake Miller17-Jun-05 6:46
Blake Miller17-Jun-05 6:46 
GeneralRe: ProcessWindowMessage and lResult Pin
McClamm17-Jun-05 6:53
McClamm17-Jun-05 6:53 
GeneralHook GDI functions Pin
xhzxlqt17-Jun-05 5:05
xhzxlqt17-Jun-05 5:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.