<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插件

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2022-02-08
  • 2021-08-19
  • 2021-08-03
  • 2021-08-10
  • 2022-12-23
猜你喜欢
  • 2021-09-16
  • 2021-08-12
  • 2021-10-26
  • 2022-01-09
  • 2021-09-17
  • 2021-05-26
相关资源
相似解决方案