{function name="_renderRecipient" _contact=[]} {strip} {if $_contact.contact_id} {$_contact.name|escape}  {$_contact.name|escape}  <{$_contact.email|escape}> {elseif !$_contact.contact_id && $_contact.name}  {$_contact.name|escape} <{$_contact.email|escape}> {else}  {$_contact.email|escape} {/if} {/strip} {/function} {if ifset($recipients)}
[`Copy`]: {foreach $recipients as $_recipient}{_renderRecipient _contact=$_recipient}{if !$_recipient@last},{/if}{/foreach}
{/if}
{if !empty($message.body_formatted)} {$body_formatted = $message.body_formatted} {elseif !empty($message.body_sanitized)} {$body_formatted = $message.body_sanitized} {else} {$body_formatted = $message.body|escape} {/if} {$body_formatted}
{if $message.attachments}
{/if} {strip}
{if $message.transport === "EMAIL"} {/if} {if $message.original} {/if} {if $message.transport === "IM"} {/if} {if $message.transport === crmMessageModel::TRANSPORT_IM || $message.transport === crmMessageModel::TRANSPORT_EMAIL && $message.conversation_id} [`open conversation`] {/if}
{/strip}