打开默认电子邮件客户端并预填充内容

时间:2017-08-31 17:06:33

标签: javascript angularjs

我需要在点击sendMail按钮页面时自动打开用户的默认电子邮件客户端。 我需要填写电子邮件主题,地址,正文和附加pdf文档。

我如何在javascript中实现这一目标?

1 个答案:

答案 0 :(得分:0)

这可能对您有所帮助:

<a href="mailto:?subject=look at this website&body=Hi,I found this website
and thought you might like it http://www.geocities.com/wowhtml/">tell a friend</a>