send html template in email body

此生再无相见时 提交于 2019-12-24 14:48:17

问题


I want to implement a button which makes the user able to compose email in Gmail and in that email body, I want to send HTML email template which I already have in a separate file. how can I implement this is Nodejs or javascript? I can use https://mail.google.com/mail/u/0/?view=cm&fs=1&tf=1 to open a Gmail compose window but how to send HTML template in this link?


回答1:


Please use html-to-text module, you can send text in html as email.




回答2:


user node mailer you can pass your template with body

https://nodemailer.com



来源:https://stackoverflow.com/questions/54234534/send-html-template-in-email-body

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!