ActiveCampaign/postmark.js

Allow API users to add attachments to email templates

Closed this issue · 1 comments

Hello! I'm working on finding a way to programmatically update our Postmark templates from a GitHub repo using GitHub actions. The issue is that I want to include inline images as attachments in our email templates, but it looks like the only place you can add an attachment is when you're actually sending the email.

This poses a bit of a logistical challenge, as with our current architecture we'd have to read the template when preparing to send the email on our Go server, search for any image cid's, then go potentially to another repo or folder and use something like regex to match the image cid to the image file name, then base64 encode that, then add it as an attachment to the outgoing email.

This seems like a lot of hoops to jump through. Our ultimate goal is to make it easy for our developers to go into a GitHub repo to update templates and add images, without a lot of overhead. I'd like to be able to add attachments to templates, as the attachments should be static.

Any help/suggestions on approach here are appreciated.

Thank you!

Edit: additional context - I followed this article on your site to start setting up our GitHub actions instead of Travis CI or Circle CI: https://postmarkapp.com/blog/managing-your-postmark-templates-with-github-using-travis-ci-or-circleci

Hi @alicenstar

thank you for contacting us about adding attachments to email templates and for using the library!

Addition of this feature is not Postmark Node JS library related, but rather Postmark app related, so I will close the issue here. In order to have this neat update in library, Postmark app would need to have this feature.

Could you send this feature request to our support team so they can add it to our queue on https://postmarkapp.com/contact ?

Thanks