<html><body><script>var formattedBody = "FirstLine \n Second Line \n Third Line";var mailToLink = "mailto:x@y.com?body=" + encodeURIComponent(formattedBody);window.location.href = mailToLink;</script></body></html>
window下默认是outlook
也可以上chrome的plugin market下载mailto插件
html send mail
原文地址:https://www.cnblogs.com/coolyylu/p/9588470.html