{if !empty($iframe)} {strip} {$_locale_string = substr($wa->locale(), 0, 2)} {$wa->appName()} — {$wa->accountName()} {* CSS *} {/strip}{$wa->css()} {wa_js} {$wa_url}wa-content/js/jquery/jquery-3.6.0.min.js {$wa_app_static_url}js/jquery/jquery-ui.min.js {$wa_url}wa-content/js/jquery-plugins/jquery.store.js {$wa_url}wa-content/js/redactor/2/redactor.min.js {$wa_url}wa-content/js/jquery-wa/wa.js {$wa_url}wa-content/js/jquery-wa/editor2.js {/wa_js} {strip} {if $_locale_string != 'en'} {/if} {/strip} {wa_js} {$wa_app_static_url}js/crmDialog/crmDialog.js {$wa_app_static_url}js/crm.js {$wa_app_static_url}js/message/message.sendEmailDialog.js {$wa_app_static_url}js/emailPersonalSettings.js {/wa_js} {* CRM CORE *} {/if} {$class = 'c-send-email-dialog'} {$dialog_id = uniqid($class)}

{if $action == "new"} [`Write message`] {elseif $action == "reply"} [`Reply on message`] «{$contact.name|escape}» {elseif $action == "deal"} [`Send message to`] «{$contact.name|escape}» {elseif $action == "forward"} [`Forward message`] {/if}

[`Headers`]
[`To`]
{if !empty($contact.id) && !empty($email)}
{$contact.name|escape} <{$email|escape}>
{else}
{/if}
[`From`]
{$sender_name|escape} {if $sender_emails|count} [`via`] {/if}
{* A field for choosing a deal if a new letter is being created *} {if empty($deal.id)}
[`Deal`]
{else}
[`Deal`]
{$_funnel = $funnels[$deal.funnel_id]|default:null} {if $_funnel} {$_stage = $stages[$deal.stage_id]|default:null} {if $_stage} {strip_tags($deal.name)|escape} {else} {strip_tags($deal.name)|escape} [`Stage deleted`] {/if} {else} {strip_tags($deal.name)|escape} [`Funnel deleted`] {/if}
{/if}
[`Subject`]
{capture assign="_file_template_html"}
{/capture}
{if !empty($files)}

[`Attach existed files:`]

{/if}
{foreach $hidden_params|default:[] as $param_key => $param_value} {/foreach} {if !empty($deal.id)} {/if}
{capture assign="_success_html"}

[`Message sent successfully`]

{/capture} {capture assign="_error_html"}

{if $wa->user()->isAdmin()}

{sprintf(_w('Check email sending settings.'), "`$wa_backend_url`webasyst/settings/email/")}

{else}

{_ws('Please refer to your system administrator.')}

{/if}
{/capture}
{$_locales = [ 'file_size' => {_w("File is too large or another upload error occurred.")}, 'remove' => {_w("Remove")}, 'remove_form_cc' => {_w("Remove from CC")}, 'change_recipient' => {_w("Change recipient")}, 'deal_select' => {_w("Select deal")}, 'deal_empty' => {_w("Empty")}, 'type_email' => {_w("Type email")}, 'type_name' => {_w("Type name")}, 'edit_recipient' => {_w("Edit recipient")}, 'send_error_title' => {_w("Message sending error")}, 'send_error_text' => {_w("Email message has not been sent.")}, 'close' => {_w("Close")}, 'archived' => {_w("(archived)")} ]} {if !empty($iframe)} {/if}