by RyanShook · 2y ago · 0 comments
I want to forward an email to an inbox, have the email body converted into a PDF, and then email that attachment to someone all automatically. I’ve tried Make, Zapier, pdf.co, pdftool, and a few other tools but have had no success. Has anyone solved this problem reliably?
Using low/no code tools might be very hard/unlikely
Obviously it's only an option if your org has already sunk deep into Microsoft-of-things (MoT) universe.
Email me and I’ll give you access for free.
A filter labels a specific email.
A timed trigger runs a script.
Script fetches all emails with that filter.
Script runs in loop. Convers each message into a blob, blob gets converted to pdf. Pdf gets saved in google drive. Email gets label removed.
My code was based on this https://www.labnol.org/code/19117-save-gmail-as-pdf
Mail.app can "Export as PDF" from the File menu, but I noticed on 13.6 that it exports blank pages if the email is plain text only.
I had to choose to print the emails and then save as PDF from the print dialog.