{if $errormsg}

{foreach $errormsg as $e} {$e} {/foreach}

{else} {if !$scheduled} {/if} {$_warning_class = "m-warning-{if empty($cron_ok)}cron-{/if}{if empty($return_path_ok['status'])}return_path-{/if}{if empty($routing_ok)}routing-{/if}reason"} {if empty($cron_ok) || empty($return_path_ok['status']) || empty($routing_ok)}

[`Warning`]

{/if} {$_prev_warning_schown = false} {if empty($cron_ok)}

[`No cron jobs, required for long mailings, have been set up for your account.`] {sprintf_wp('Without cron jobs set up, do not close your browser window after clicking on the “%s” button to complete the email sending process.', _w('Launch campaign'))}

{sprintf_wp( 'To ensure that sending is completed without your input, please set up cron jobs (view instructions), with the commands specified below, in your web-hosting control panel:', _w('https://developers.webasyst.com/docs/tips/cron/') )}

{$cron_command}

{$_prev_warning_schown = true} {/if} {if $return_path_ok['status'] == false} {if $_prev_warning_schown}
{/if}

{if $_prev_warning_schown} {/if} {if $return_path_ok['reason'] == 1 || $return_path_ok['reason'] == 2 || $return_path_ok['reason'] == 3} [`Return-Path address specified above is not available.`] {elseif $return_path_ok['reason'] == 4} {sprintf_wp('Return-Path “%s” is forbidden by the sending server.', $return_path_ok['return-path'])} {/if} [`Return-Path address is used to automatically process bounced emails.`]

{$_prev_warning_schown = true} {/if} {if empty($routing_ok)} {if $_prev_warning_schown}
{/if}

{if $_prev_warning_schown} {/if} [`You have no routing rules defined for Mailer application.`] [`Unsubscribe links in your message will not work.`] {sprintf_wp('To set up routing rules use %sSite application%s.', '', '')}

{$_prev_warning_schown = true} {/if} {if $need_from_replace} {if $_prev_warning_schown}
{/if} {if !$need_from_replace.spf.is_ok || !$need_from_replace.dkim.is_ok}

{sprintf_wp( 'Sender address %s cannot be used for sending email campaigns via the Webasyst service for the following reasons:', $need_from_replace.original_from_email )}

{/if} {if $need_from_replace.is_zone_records_just_created}

{sprintf_wp( _ws('Necessary records have been added to the DNS zone of domain name %s. Please wait for up to 2 days until these changes take effect.'), $need_from_replace.domain )}

{/if}

[s`To prevent messages from being rejected or marked as SPAM by recipients’ servers, the sender’s information will be replaced as follows in the message headers:`]

From: {if !empty($need_from_replace.from_name)} {$need_from_replace.from_name|escape} <{$need_from_replace.from_email|escape}> {else} {$need_from_replace.from_email|escape} {/if} {if !empty($need_from_replace.reply_to_email)}
Reply-To: {if !empty($need_from_replace.reply_to_name)} {$need_from_replace.reply_to_name|escape} <{$need_from_replace.reply_to_email|escape}> {else} {$need_from_replace.reply_to_email|escape} {/if} {/if}

[`Accept replacement`] [`Edit email From`] {if !$need_from_replace.is_public_email_provider && !$need_from_replace.is_zone_records_just_created}
{if !$need_from_replace.spf.is_ok || !$need_from_replace.dkim.is_ok}

{sprintf_wp( _ws('If you do not want such a replacement and would like to use only sender address %s then carry out the following actions (it may be required to wait up to 2 days for these changes to take effect).'), $need_from_replace.original_from_email )}

{/if}
    {if !$need_from_replace.spf.is_ok} {if empty($need_from_replace.spf.record_current)}
  1. {sprintf_wp( _ws('Add an SPF record for domain name %s:'), $need_from_replace.domain )}
    [s`Host:`] {$need_from_replace.spf.domain|escape}. [s`Record type:`] TXT. [s`Value:`]
    {$need_from_replace.spf.record_required|escape}
  2. {else}
  3. {sprintf_wp( _ws('Change the SPF rules of domain name %s.'), $need_from_replace.domain )}
    {sprintf_wp( _ws('To do so, include the Webasyst Email servers’ addresses in the list of allowed email senders for domain name %s by adding the %s part to its SPF record.'), $need_from_replace.domain, $need_from_replace.spf.record_include )}
    {sprintf_wp( _ws('Current SPF record value in the %s zone:'), $need_from_replace.spf.domain )}
    {$need_from_replace.spf.record_current|escape}
    [s`Change this record as follows:`]
    {$need_from_replace.spf.record_required}
  4. {/if} {/if} {if !$need_from_replace.dkim.is_ok} {if empty($need_from_replace.dmarc_policy)}
  5. {sprintf_wp( _ws('Add a DMARC policy record for domain name %s.'), $need_from_replace.domain )}
    [s`Host:`] _dmarc.{$need_from_replace.domain}. [s`Record type:`] TXT. [s`Value:`] v=DMARC1; p=none.
  6. {/if} {if !empty($need_from_replace.dkim.txt)}
  7. {sprintf_wp( _ws('Add a DKIM record to the DNS zone of domain name %s:'), $need_from_replace.domain )}
    [s`Host:`] {$need_from_replace.dkim.host}. [s`Record type:`] TXT. [s`Value:`]
    {$need_from_replace.dkim.txt|escape}
  8. {/if} {/if}
{/if} {$_prev_warning_schown = true} {/if} {if $scheduled} {if $_prev_warning_schown}
{/if}

[`Sending is scheduled for`] {$scheduled_time|wa_datetime:'humandatetime'} {_w('Ready to send to %d recipients.', 'Ready to send to %d recipients.', $unique_recipients)} {if $estimated_duration} {sprintf_wp('The sending will take about %s.', $estimated_duration)} {/if}

{elseif empty($need_from_replace)} {if $_prev_warning_schown}
{/if}

{_w('Ready to send to %d recipients.', 'Ready to send to %d recipients.', $unique_recipients)} {if $estimated_duration} {sprintf_wp('The sending will take %s.', $estimated_duration)} {/if}

{/if} {/if}