用a标签:
<a href="mailto:收件人邮箱?subject=test&cc=抄送人邮箱&subject=主题&body=内容">调用邮箱本地发送邮件</a>
js发送:
/*js调用本地邮箱发送邮件*/
function mailsome1() {
var who = prompt("请输入收件人邮箱: ", "sample@sample.net");
var what = prompt("输入主题: ", "none");
if (confirm("你确定要向" + who + "发送主题为 " + what + "的邮件么?") == true) {
parent.location.href = 'mailto:' + who + '?subject=' + what + '';
}
}