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