Skip to main content

When working with a python code block in zapier, is there a way to programmatically download a file (pdf or eml) and attach it in the attachments portion of the smtp app to send out?  The question isn’t really around the code to download but how to get the object in the attachments portion of the smtp app call?

Hi @ckimmel 

Here’s a help article about using files in Zaps: https://zapier.com/help/create/basics/send-files-in-zaps

If the attachment field has the file icon then it can accept a publicly accessible file url or a file object.

You can hydrate a file using a GET request as an action step in the Zap with the Webhooks app which will return a file: https://zapier.com/apps/webhook/help

Example

 

Returns this