{$_title = "[s`Email settings`] — {$wa->accountName(false)}"} {function name="_renderConfig" key=key config=[] is_template=is_template} {$_transport = $config.type|default:mail} {$_rand = rand()} {strip}
{if $key != 'default'}
 [s`Remove`]
{/if}
{* KEY *}
{if $key != 'default'}
[s`Email or domain`]*
{/if}
{if $key == 'default'} {else}
[s`Enter an email address to set up a transport for one sender email.
Enter a domain name to set up a transport for all sender emails on that domain.`]
{/if}
{* TRANSPORT *}
[s`Transport`]

{foreach $available_transports as $id => $transport} {$transport.description|default:null} {/foreach}
{* MAIL PARAMS *} {if isset($available_transports.mail)} {/if} {* SMTP PARAMS *} {if isset($available_transports.smtp)} {/if} {* SENDMAIL PARAMS *} {if isset($available_transports.sendmail)} {/if} {* DKIM *} {if $key !== 'default'}
[s`Add a DKIM signature to outgoing email messages to confirm your ownership of the sender’s email address.`]
[s`Enter an email address in “Sender” field to use DKIM.`]
{if !$ssl_is_set}
[s`PHP extension “openssl” must be installed on your server to make the DKIM option available.`]
{/if} {if !$php_version_ok}
[s`You need PHP version 5.3 or higher to use DKIM. Your current version is:`] {$php_version}
{/if}
{* DKIM INFO *}
{/if}
{/strip} {/function}

[s`Email settings`]

{* Incoming / outgoing emails *}

[s`Main account administrative email where system notification will be sent.`]

[s`Reply-To address for system email notifications sent by Webasyst.`]
{* Editor for wa-config/mail.php *}

[s`Default sending parameters`]

{sprintf(_ws('The email sending parameters specified below are used by default for all outgoing email messages. If you need to use other parameters for all or certain sender addresses or domains then add extra rules using the “%s” button.'), _ws('Add email sending rule'))}
{_renderConfig key='default' config=$main_configs.default is_template=false}

[s`Additional sending parameters`]

[s`Add email sending rule`]
{foreach $main_configs as $key => $config} {if $key !== 'default'} {_renderConfig key=$key config=$config is_template=false} {/if} {/foreach}
{_renderConfig key=null is_template=true}