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.66k stars 339 forks source link

#395 renderAll bug fix #396

Closed matkev closed 4 years ago

matkev commented 4 years ago

Remove .isArray(messsage.attachments) condition when checking to throw error in renderAll(). .isEmpty(message.attachments) will simply return false if message.attachments is not an object, collection, map, or set. lodash docs