dwyl / sendemail

💌 Simplifies reliably sending emails from your node.js apps using AWS Simple Email Service (SES)
182 stars 26 forks source link

Readme Step 4 - Send an email has an error #84

Closed RobStallion closed 6 years ago

RobStallion commented 6 years ago

In step 4 of the readme there is an error when setting variables.

The example code in the readme is as follows...

var sendemail   = require('sendemail').email; // no api key
var email = sendemail.email;
sendemail.set_template_directory('./relative/path/to/template/directory');

A function is being assigned to the sendemail variable rather than the module. This will lead to errors when trying to do the steps below.