{$_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'}

[s`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`You need to install openssl php extention to use DKIM`]
{/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`Select how email messages must be sent by default from your Webasyst.`]
{foreach $main_configs as $key => $config} {_renderConfig key=$key config=$config is_template=false} {/foreach}
[s`If you use different sender email addresses in your apps, then you can add extra rules to send messages from those addresses. Emails from other addresses will be sent via the transport selected in “Default” section.`]
[s`Add email sending rule`]
{_renderConfig key=null is_template=true}