问题
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