html send mail

  

<html>
<body>
<script>
var formattedBody = "FirstLine 
 Second Line 
 Third Line";
var mailToLink = "mailto:x@y.com?body=" + encodeURIComponent(formattedBody);
window.location.href = mailToLink;
</script>
</body>
</html>

  

window下默认是outlook

也可以上chrome的plugin market下载mailto插件

原文地址:https://www.cnblogs.com/coolyylu/p/9588470.html