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
- Runs GeneratePDF
- Runs EncodePDF
- Runs SendEmail
GeneratePDF
- Use SelectPDF to create pdf page
- Save PDF url to db.
Encode
- API Connector call to FetchPDFContent
- Base64Encoder (plugin). Result of Step1
- Save result of step 2 as Encodedpdf in db.
SendEmail
- 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!