phython code block, requests.get some .eml file and attach in smtp app

  • 23 June 2021
  • 1 reply

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?

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +14

Hi @ckimmel 

Here’s a help article about using 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:



Returns this