node.js - Longer Nodemailer Html/Text -


every example of nodemailer along these lines:

var mailoptions = {     from: "fred foo ✔ <foo@blurdybloop.com>", // sender address     to: "bar@blurdybloop.com, baz@blurdybloop.com", // list of receivers     subject: "hello ✔", // subject line     text: "hello world ✔", // plaintext body     html: "<b>hello world ✔</b>" // html body} 

i want make longer message 1 liner when signs up.

is there way write , source html place within application, maybe series of line breaks.

tl;dr

i want have nodemailer send longer email 1 liner

put content in file , load it.

fs = require('fs'); fs.readfile('/wwwroot/includes/email.html', 'utf8', function (err,data) {   if (err) {     return console.log(err);   }   var html = data; }); 

Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -