简体   繁体   English

在电子邮件正文中发送HTML模板

[英]send html template in email body

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. 我想实现一个按钮,使用户能够在Gmail中撰写电子邮件,并且在该电子邮件正文中,我想发送HTML电子邮件模板,该模板已经在单独的文件中了。 how can I implement this is Nodejs or javascript? 如何实现这是Nodejs或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? 我可以使用https://mail.google.com/mail/u/0/?view=cm&fs=1&tf=1打开Gmail撰写窗口,但是如何在此链接中发送HTML模板?

请使用html-to-text模块,您可以将html中的文本作为电子邮件发送。

user node mailer you can pass your template with body 用户节点邮件程序,您可以通过正文传递模板

https://nodemailer.com https://nodemailer.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM