{$dialog_id = uniqid('f-send-dialog-')} {function form_begin} {if $allowed}
{/if} {/function} {function form_end} {if $allowed}
{/if} {/function} {function size} {if $allowed && $files}width600px height400px{else}width400px height200px{/if} {/function}
{form_begin}

[`Send as attachment`]

{if $allowed}
[`To:`]
[`One email per line or separated by a ";"`]
[`Subject:`]
[`Text:`]
[`Attachments:`]
{_w('%d file', '%d files', count($files))} ({$size_str})
{else}

[`File size exceeds the limit set for email messages.`]

{/if}
{$wa->csrf()} {if $allowed && $files} [`or`] [`cancel`] {else} {/if}
{form_end}