{*+********************************************************************************** * The contents of this file are subject to the vtiger CRM Public License Version 1.1 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. ************************************************************************************} {strip}
from())}'> to())}'> cc())}'> {assign var=ATTACHMENT_COUNT value=(count($ATTACHMENTS) - count($INLINE_ATT))}
{$MAIL->subject()}

{assign var=NAME value=$MAIL->from()} {assign var=FIRST_CHAR value=strtoupper(substr($NAME[0], 0, 1))} {if $FOLDER->isSentFolder()} {assign var=NAME value=$MAIL->to()} {assign var=FIRST_CHAR value=strtoupper(substr($NAME[0], 0, 1))} {/if} {$FIRST_CHAR}
{if $FOLDER->isSentFolder()} {implode(', ', $MAIL->to())} {else} {$NAME[0]} {/if} {if $ATTACHMENT_COUNT}    {/if} {assign var=FROM value=$MAIL->from()}   
{Vtiger_Util_Helper::formatDateTimeIntoDayString($MAIL->date(), true)}

{$BODY}
{if $ATTACHMENT_COUNT}


{vtranslate('LBL_Attachments',$MODULE)}   ({count($ATTACHMENTS) - count($INLINE_ATT)} {vtranslate('LBL_FILES', $MODULE)})

{foreach item=ATTACHVALUE from=$ATTACHMENTS name="attach"} {assign var=ATTACHNAME value=$ATTACHVALUE['filename']} {if $INLINE_ATT[$ATTACHNAME] eq null} {assign var=DOWNLOAD_LINK value=$ATTACHNAME|@escape:'url'} {assign var=ATTACHID value=$ATTACHVALUE['attachid']}    {$ATTACHNAME}   ({$ATTACHVALUE['size']})   
{/if} {/foreach}
{/if}
{/strip}