{layout '../layout.minimal.latte'} {block title}Attachments{/block} {block content} File are either directly attached to the message (attachment) or are available to be included as a downloadable link (downloadlink). If you click on a link below the link will be included in your message and the recipient will be able to download the file.

Files

{if count($mailing->attachments)>0} {* eerst inline attachments *} {foreach $mailing->attachments as $attachment} {if !$attachment->download} {form attachmenthandler} {/form} {/if} {/foreach} {* dan lijstje downloadable files *} {foreach $mailing->attachments as $attachment} {if $attachment->download} {foreach $attachment->keys as $key} {form attachmenthandler} {/form} {/foreach} {/if} {/foreach} {else} {/if} {* en dan mogelijkheid extra files toe te voegen *}
attachment {$attachment->filename} {sprintf("%0.3f", $attachment->size/1000000)} MB
downloadlink {$attachment->filename} {sprintf("%0.3f", $attachment->size/1000000)} MB {if ($attachment->size < $cfg->attachment_maxsize)} {else}   {/if}
Currently no attached files present
{form attachmentForm}

{/form}
Maximum size of the mailmessage is {$cfg->message_maxsize} MB
Size of attachment (MB) Options
< {sprintf("%01.1f", $cfg->attachment_warnsize/1000000)} attachment (default), downloadlink
{sprintf("%01.1f", $cfg->attachment_warnsize/1000000)} - {sprintf("%01.1f", $cfg->attachment_maxsize/1000000)} downloadlink (default), attachment
> {sprintf("%01.1f", $cfg->attachment_maxsize/1000000)} downloadlink