问题描述
目前我正在使用 Mandrill 邮件程序集成并使用 Mailchimp 创建 HTML 模板。我必须迭代模板中的附件(如带有文件名的内联附件)。我已经测试了带有邮件触发器和附件显示在邮件底部的附件,但它们没有反映在内联模板中。你能给我建议我如何在 Mailchimp HTML 模板中迭代附件。
下面的代码我试过了,但不起作用。
<table cellpadding="5" cellspacing="0" style="font-family:'Varela Round',sans-serif;font-size:15px;line-height:1.33;color:#01366c;max-width:700px;margin-left:35px;">
<tr>
<td>Messages</td>
</tr>
{{#each attachments}}
{{#if attachments}}
<tr>
<td>
<span style="font-size: 12px;">Attachments:</span>
{{#each attachments}}
<br><a href="{{link}}" style="font-size:14px;">{{name}}</a>
{{/each}}
</td>
</tr>
{{/if}}
{{/each}}
<!-- end notes loop -->
</table>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)