从C ++调用带有收件人地址和主题的标准邮件客户端的简单方法? [英] Easy way to invoke standard mail client from c++ with recipient adress and subject?

查看:58
本文介绍了从C ++调用带有收件人地址和主题的标准邮件客户端的简单方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TcKs的答案给了我一个主意,因此我尝试了以下操作:

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

system("mailto:thomas.muster@domainname.com?subject=Test");

    STARTUPINFO info = {sizeof(info)};
    PROCESS_INFORMATION processInfo = {0};
    if (!::CreateProcess(NULL, "mailto:thomas.muster@domainname.com",
        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?

谢谢!

推荐答案

尝试ShellExecute函数: http://support.microsoft.com/kb/224816

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

这篇关于从C ++调用带有收件人地址和主题的标准邮件客户端的简单方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆