I stumbled upon this feature in nodemailer. The option attachDataUrls needs to be passed for it to add the images as attachments.
Doesn't this library serve the same purpose? Unless the native feature doesn't handle base64 encoding explicitly and that's what this library achieves?
I just tested attachDataUrls with an img tag that contains base64: the resulting email contains the image rendered correctly. So I guess yes, nodemailer now natively supports this lib's functionality.
I stumbled upon this feature in
nodemailer
. The optionattachDataUrls
needs to be passed for it to add the images as attachments. Doesn't this library serve the same purpose? Unless the native feature doesn't handlebase64
encoding explicitly and that's what this library achieves?