balderdashy / sails-hook-email

Sails email hook
67 stars 34 forks source link

How to disable nodemailer-html-to-text to send html email #25

Closed duongNA closed 8 years ago

duongNA commented 8 years ago

Transport always use nodemailer-html-to-text Plugin

// Auto generate text
transport.use('compile', htmlToText());
return cb();

However, I want to send real html email. Do you guys know how to fix it?

duongNA commented 8 years ago

After reading nodemailer document again, I realized that we need to provide two version of email: text and html. nodemailer-html-to-text is used to generate text version from html if text version is not provided. So, nodemailer-html-to-text is necessary. Close issue.