-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
I got this error, even the path directory to templates is correct
this is My Code 💯
var sendemail = require('sendemail');
var path = require('path');
var dir ='./templates'; // unresolved
sendemail.set_template_directory(dir);
var options = {
templateName: 'welcome',
context: {
tempalateVariableName: 'Variable Value',
name: 'Joe Bloggs'
},
subject: 'Welcome to Email',
senderEmailAddress: 'me@gmail.com',
toAddresses: ['me@gmail.com', 'me@gmail.com'],
htmlCharset: 'utf16',
textCharset: 'utf16',
subjectCharset: 'utf8'
};
sendemail.sendMany(options, callback);
Reactions are currently unavailable