Displaying Attachments in Email Templates

Good news, everyone!

We've added yet another new feature to make your life better. You can now display image attachments in your custom email templates!

Just like with other template fields, just surround them with double curly braces to access them, iterating through each of the attachments like so:

{{#each attachment}}
  <a href="{{this.public_url}}">{{this.name}}</a>
 
<!-- OR -->
  <img src="{{this.public_url}}"/>
  <b>File size:</b>{{this.file_size}} bytes
{{/each}}


Check out our Custom Templates & Merge Tags page for further information on other neat things you can do with email templates.

Have fun!


Working HTML forms in any tech stack

Write less code and get more done with Basin.

Get started for free