header.dataAttr}}="{{>header.dataValue}}" class="contentBox " test-id="email_{{>type}}_container">

{{>subject}}

{{if failed}}

Critical

{{>errorMessage}}

{{/if}} {{if user}}

Sent By: {{>user.title}} {{>user.firstName}} {{>user.lastName}}

{{/if}} {{if type == 'scheduled'}}

Due to be sent:

{^{else}}

{{if type=='inbox'}}Received{{/if}}{{if type=='sent'}}Sent{{/if}}{{if type=='template'}}Created{{/if}}

{{/if}}
{{:body}}
{{if attachments && attachments.length > 0}}

Attachments

{{for attachments}} {{/for}} {{/if}}
{{if deletedAttachments && deletedAttachments.length > 0}}

Deleted Attachments

{{for deletedAttachments}}
{{>#data}}
{{/for}} {{/if}}
{^{if type != 'inbox'}} {{if footer}} {{if footer.buttonBar}} {{for footer.buttonBar tmpl="#fragButtonBar" /}} {{/if}} {{else}}
{{if type != 'drafts' && type != 'scheduled'}} {^{if type != 'archived'}} {{/if}} {^{if (sent && sent === 1) || type === 'archived'}} {^{else}} {{/if}} {{/if}} {{if type == 'drafts'}} {{/if}} {{if type == 'scheduled'}}
{{/if}}
{{/if}} {{/if}}