PostMark Base64 Attachment

I am trying to use the PostMark API with Attachment to attach a pdf I generate from a webpage in Bubble. I am under the impression PostMark requires the content to be Base64.

I have attached screenshots of my backend flows, but in summary.
Order Tasks

  1. Runs GeneratePDF
  2. Runs EncodePDF
  3. Runs SendEmail

GeneratePDF

  1. Use SelectPDF to create pdf page
  2. Save PDF url to db.

Encode

  1. API Connector call to FetchPDFContent
  2. Base64Encoder (plugin). Result of Step1
  3. Save result of step 2 as Encodedpdf in db.

SendEmail

  1. SendPostMark (content = Encodedpdf)

I receive the email with attachment, but it is always 1kb and unreadable.
I have been using ChatGPT for troubleshooting and have gone in circles, trying different plugins, different combinations, etc.
Please help!

This topic was automatically closed after 70 days. New replies are no longer allowed.