1.
<pre name="code" class="html"><a href="Mailto:test@163.com?CC=test@163.com&BCC=test@163.com&Subject=Hello&Body=你好">给我发邮件</a></pre>
<pre></pre>
参数说明:
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px">
</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px">
CC:抄送地址;</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px">
BCC:密件抄送地址;</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px">
Subject:主题;</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px">
Body:邮件内容。</p>
<p style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px">
注:多个邮件地址用";"隔开。</p>
http://www.haorooms.com/post/mailto_link_html
2.
System.Diagnostics.Process.Start("mailto:devil11223344@163.com");
3.ActivX Outlook
<script type="text/javascript">
function SendMail() {
var filePath = "/bootsqm.dat";
var path = location.href.substring(0, location.href.lastIndexOf("/")) + filePath;
//var path = "c:\\bootsqm.dat"
var outlookApp = new ActiveXObject("Outlook.Application");
var nameSpace = outlookApp.getNameSpace("MAPI");
var mailItem = outlookApp.CreateItem(0);
var mailto = "ma.shenghao@kits.cn.kline.com ";
var mailcc = "xu.liang@kits.cn.kline.com";
var mailBody = "<HTML><BODY><DIV><FONT color=‘red’>test this is body html</FONT></DIV></BODY></HTML>";
mailItem.Subject = "test subject";
mailItem.To = mailto;
mailItem.CC = mailcc;
mailItem.HTMLBody = mailBody;
if (path != "") {
mailItem.Attachments.Add(path);
}
mailItem.Display(0);
mailItem = null;
nameSpace = null;
outlookApp = null;
}
</script>
调试js 报错:Automation server can't create object
浏览器的“工具”菜单----》Internet选项----》选择“安全”选项卡----》选择“自定义级别”----》“对没有标记为安全的ActiveX控件进行初始化和脚本运行”这里默认选择“禁用”,改为“启用”或者“提示”