Help

Using SendGrid to send photos in email

Topic Labels: Extensions
5380 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Will_Chen
4 - Data Explorer
4 - Data Explorer

Hi, each record in my table has an email address {email} and photo {photo}. For each record, I’d like to send the record’s photo to the record’s email address. Is there a way to do this using SendGrid? I’ve tried turning on “Send as HTML” and doing <img src="{photo}"> but doesn’t work as {photo} is replaced by “filename (url-to-file)” when I only want url-to-file.

2 Replies 2
Pete
7 - App Architect
7 - App Architect

Hey Will,

It’s possible to send photos from an attachment field in the Sendgrid block as long as there’s just one photo uploaded per attachment cell. To do so, first add a formula field to pull the URL from the attachment field:

MID({attachment}, FIND('dl.airtable.com', {attachment}), LEN({attachment}) - FIND('dl.airtable.com', {attachment}))

Then, as long as your Sendgrid block is configured to Send as HTML,

image.png

you can reference the formula field to display the image:

<img src="{Attachment URL Formula}">

Does this help?

Will_Chen
4 - Data Explorer
4 - Data Explorer

Yes - thank you so much!