forwardemail / email-templates

Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
https://forwardemail.net/docs/send-emails-with-node-js-javascript
MIT License
3.67k stars 337 forks source link

Transport config option shouldn't be required #293

Closed nthfloor closed 6 years ago

nthfloor commented 6 years ago

Based on the documentation, it seems that in the event you just want to render HTML without sending an email, then the 'transport' config option should not be required. However, if transport is not supplied then the constructor throws an error.

niftylettuce commented 6 years ago

You don't need to pass a transport option, it works fine without one. Perhaps you need to upgrade to latest version?