tags:

views:

34

answers:

1

The answer from TcKs gave me an idea, thus i tried following:

system("mailto:[email protected]?subject=Test");

and

    STARTUPINFO info = {sizeof(info)};
    PROCESS_INFORMATION processInfo = {0};
    if (!::CreateProcess(NULL, "mailto:[email protected]",
        NULL, NULL, FALSE, 0, NULL, NULL, &info, &processInfo))
    {
        MessageBox("Couldn't invoke Standard Mail Client");
        return;
    }

But neither the first nor the second form did work. Do you have any simple solution?

Thanks!

+2  A: 

Try the ShellExecute function: http://support.microsoft.com/kb/224816

Let_Me_Be
std::wstring mail = L"mailto:[email protected]";ShellExecute(NULL, L"open", mail.c_str(), NULL, NULL, SW_SHOWNORMAL);
anno