Aman kumar
Aman kumar

Reputation: 54

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. 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?

Upvotes: 1

Views: 1751

Answers (2)

Kalpesh Kashyap
Kalpesh Kashyap

Reputation: 824

user node mailer you can pass your template with body

https://nodemailer.com

Upvotes: 0

Mudassir
Mudassir

Reputation: 596

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

Upvotes: 2

Related Questions