Create, preview (browser/iOS Simulator), and send custom email templates for Node.js. Made for @forwardemail, @ladjs, @cabinjs, @spamscanner, and @breejs.
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
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