railsware / mailtrap-nodejs

Official mailtrap.io Node.js client
https://mailtrap.io
MIT License
58 stars 7 forks source link

examples: fix Nodemailer transport example to render attachment inline #43

Closed vittorius closed 4 months ago

vittorius commented 4 months ago

Motivation

Fixed the Nodemailer example to render the attachment image inline, like in other examples.

Changes

Added the required options to the attachments config section of Nodemailer send call arguments

How to test

Send an email using the examples/sending/transport.ts example and ensure that the attachment image is rendered inline in the email HTML body

Images and GIFs

Before After
image image