Closed mramato closed 5 years ago
Hi, Same problem :/
This must be a bug with the new version, I will take a look. Sorry about that.
will be published in new version shortly, thanks
email-templates@5.0.2
has been released to npm
Thanks for the quick fix, @niftylettuce.
I have the following code, which works perfectly:
The problem is that if someone typos
templateName
to a directory that doesn't exist,email.send
just sends a blank message instead of rejecting the promise.Is there a way to tell it to reject if the template is invalid or not found?