How to Display Attachments in Custom 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!

Try Basin today for free

Setup a powerful, no code form backend with just a few clicks.

Create your account