{{fscript emails := selectedObjects sortedArrayUsingDescriptors:{(NSSortDescriptor sortDescriptorWithKey:'DMIRecordDate' ascending:false)}. globals setEmailsForDisplay:emails. }}

{{localize 'Emails'}}

{{foreach email emailsForDisplay do}} {{endforeach do}}
Email Subject: {{email.subject}}
From: {{email.fromString}}
To: {{email.toString}}
{{if email.carbonCopyString}} CC: {{email.carbonCopyString}}
{{endif}}
Email Date:
{{email.emailMessageDate.mcShortDate}}
Recorded On:
{{email.DMIRecordDate.mcShortDate}}
Modify Date:
{{email.modifyDate.mcShortDate}}

Content:

{{fscript htmlString := NSAttributedString htmlRepresenation:((email largeData) attributedStringRepresentation). htmlString. }}






{{localize 'Generated by {{objectContext.user.contact.cachedName}} on {{date}}'}}.