Closed Comkwatt closed 9 years ago
I've solved the problem by adding two additional requires at the top of index.js of sails-hook-email
var async = require('async');
var _ = require('lodash');
I've created this pull request just in case : https://github.com/balderdashy/sails-hook-email/pull/19
Thanks @Comkwatt. Lodash and async are generally globalized by Sails but you can turn that off, so it's good to have them be explicit. Can you update your PR to add them as dependencies in the package.json
file as well?
Hi,
In fact I've not installed sails directly, but I've use this boilerplate and I didn't saw that some globals has been disabled : https://github.com/tarlepp/angular-sailsjs-boilerplate
Anyway if you want, I've updated my pull request :)
Have a nice day !
Closed by #19
Hi,
I'm juste trying to send a mail with this hook, with this code :
Sails raises me an error when i call sails.hooks.email.send
Do you've got an Idea ?