May 02, 2019 07:43 AM
Is there a way to pull in a PDF as an attachment (or even a downloadable link) in a mailing sent via SendGrid?
Use case I have in mind: send individual tax receipt to individual members in a mass mailing.
Many thanks for all help!
May 02, 2019 08:22 AM
Hi @President_ART_Club - 3 ways to do this (at least!). Have a look at this table:
So, you can have a full URL link to the document (Document field), or a unique name/ID (Document ID field) for a document uploaded somewhere (other than Airtable) or you can attach the PDF file to the record as an attachment (Attachment field).
Then, in the Sendgrid block config, do this:
You can then reference these fields in the email template:
{Document}
https://www.example.com/{Document ID}.pdf
- this concatenates the fixed elements of the URL with the document ID, which will vary by record.
{Attachment}
The resulting email is this:
All 3 methods show a proper link in the email. Which one you use will come down to where the pdfs are located - either in Airtable or somewhere else.
Hope this helps.
JB
May 02, 2019 08:30 AM
As an aside, I found that my test Sendgrid emails were going into my spam folder, so you might need to alert recipients to this.
Mar 27, 2020 04:39 AM
Is there also a way to send the attachment directly in the mail?
Jul 13, 2020 03:12 AM
The SendGrid API supports attachments, but apparently the block does not.
Jul 13, 2020 03:15 AM
Link to the request. Please add your voice if you like to see this feature too. :slightly_smiling_face:
Dec 18, 2020 05:03 AM
The Problem is basically solved with Airtable automations now.
You don’t need to use sendgrid anymore, you can just use a gmail account and write an automation that can send emails (with attachments.)