如何模拟“mailto:”调用Winforms按钮点击? [英] How to simulate a "mailto:" call on Winforms Button Click?

查看:87
本文介绍了如何模拟“mailto:”调用Winforms按钮点击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将通过打开标签邮件程序(如mailto:)发送一封给定地址的电子邮件,在a-tag中将会执行此操作,但点击按钮。

I will send an email with a given address by open the standard email program like "mailto:" in an a-tag will do it, but within a button click.

如何?

推荐答案

here

private void btnEmail_Click(object sender, EventArgs e)  
{ 
   string command = "mailto:info[at]codegain.com?subject=The Subject&bcc=vrrave[at]codegaim.com";  
   Process.Start(command); 
}

这篇关于如何模拟“mailto:”调用Winforms按钮点击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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