mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
127 lines
5 KiB
HTML
127 lines
5 KiB
HTML
<include target="./common.html" />
|
|
<load target="css/spf_dkim.css" />
|
|
<load target="js/spf_dkim.js" />
|
|
|
|
<div id="spf_dkim_setting" class="x_form-horizontal"
|
|
data-nothing-to-check="{$lang->cmd_advanced_mailer_nothing_to_check}"
|
|
data-check-no-records="{$lang->cmd_advanced_mailer_check_no_records}"
|
|
data-check-failure="{$lang->cmd_advanced_mailer_check_failure}"
|
|
data-check-result="{$lang->cmd_advanced_mailer_check_result}">
|
|
|
|
<div class="advanced_mailer_description">
|
|
※ {$lang->cmd_advanced_mailer_about_spf_dkim_setting}
|
|
</div>
|
|
|
|
<div class="x_control-group">
|
|
<label class="x_control-label">{$lang->cmd_advanced_mailer_sending_method_default}</label>
|
|
<div class="x_controls margin-top">
|
|
{$sending_methods[$sending_method]['name']}
|
|
<!--@if($sending_method === 'woorimail')-->
|
|
<!--@if(config('mail.woorimail.api_type') === 'free')-->
|
|
({$lang->cmd_advanced_mailer_api_type_free})
|
|
<!--@else-->
|
|
({$lang->cmd_advanced_mailer_api_type_paid})
|
|
<!--@end-->
|
|
<!--@end-->
|
|
</div>
|
|
</div>
|
|
|
|
<div class="x_control-group" cond="count($used_methods) > 1">
|
|
<label class="x_control-label">{$lang->cmd_advanced_mailer_sending_method_exceptions}</label>
|
|
<div class="x_controls">
|
|
<!--@foreach($advanced_mailer_config->exceptions as $exception)-->
|
|
<!--@if(in_array($exception['method'], $used_methods))-->
|
|
<div class="spf_dkim_item">
|
|
{$sending_methods[$exception['method']]['name']}
|
|
<!--@if($exception['method'] === 'woorimail')-->
|
|
<!--@if(config('mail.woorimail.api_type') === 'free')-->
|
|
({$lang->cmd_advanced_mailer_api_type_free})
|
|
<!--@else-->
|
|
({$lang->cmd_advanced_mailer_api_type_paid})
|
|
<!--@end-->
|
|
<!--@end-->
|
|
— {sprintf($lang->cmd_advanced_mailer_domain_count, count($exception['domains']))}
|
|
</div>
|
|
<!--@end-->
|
|
<!--@end-->
|
|
</div>
|
|
</div>
|
|
|
|
<div class="x_control-group">
|
|
<label class="x_control-label">{$lang->cmd_advanced_mailer_sender_email}</label>
|
|
<div class="x_controls margin-top">{$advanced_mailer_config->sender_email}</div>
|
|
</div>
|
|
|
|
{@ $ignore_domains = '/^(g(oogle)?mail\.com|(daum|hanmail2?)\.net|(naver|outlook|hotmail|yahoo)\.com|(hotmail|yahoo)\.co\.kr)$/i'}
|
|
|
|
<div class="x_control-group">
|
|
<label class="x_control-label">SPF</label>
|
|
<div class="x_controls">
|
|
<!--@if(preg_match($ignore_domains, $sending_domain))-->
|
|
<div class="spf_dkim_item">
|
|
{$lang->cmd_advanced_mailer_not_applicable_because_sender_domain}
|
|
</div>
|
|
<!--@elseif(!count($used_methods_with_usable_spf))-->
|
|
<div class="spf_dkim_item">
|
|
{$lang->cmd_advanced_mailer_not_applicable_because_sending_method}
|
|
</div>
|
|
<!--@else-->
|
|
<div class="spf_dkim_item">
|
|
<span class="label">{$lang->cmd_advanced_mailer_dns_hostname}</span>
|
|
<span class="monospace">{$sending_domain}</span>
|
|
<a href="#" id="advanced_mailer_check_spf">{$lang->cmd_advanced_mailer_check}</a>
|
|
</div>
|
|
<div class="spf_dkim_item">
|
|
<span class="label">{$lang->cmd_advanced_mailer_txt_record}</span>
|
|
<span class="monospace">v=spf1 a mx {implode(' ', $used_methods_with_usable_spf)} ~all</span>
|
|
</div>
|
|
{@ $other_infos = array()}
|
|
<!--@foreach($used_methods_with_usable_spf as $method => $spf)-->
|
|
{@ $other_info = Context::getLang('cmd_advanced_mailer_other_info_' . $method . '_spf')}
|
|
{@ if(strncmp('cmd_', $other_info, 4)) $other_infos[] = $other_info}
|
|
<!--@end-->
|
|
<div class="spf_dkim_item" cond="count($other_infos)">
|
|
<!--@foreach($other_infos as $other_info)-->
|
|
<span class="label">{$lang->cmd_advanced_mailer_other_info}</span>
|
|
<span>{$other_info}</span><br />
|
|
<!--@end-->
|
|
</div>
|
|
<!--@end-->
|
|
</div>
|
|
</div>
|
|
|
|
<div class="x_control-group">
|
|
<label class="x_control-label">DKIM</label>
|
|
<div class="x_controls">
|
|
<!--@if(preg_match($ignore_domains, $sending_domain))-->
|
|
<div class="spf_dkim_item">
|
|
{$lang->cmd_advanced_mailer_not_applicable_because_sender_domain}
|
|
</div>
|
|
<!--@elseif(!count($used_methods_with_usable_dkim))-->
|
|
<div class="spf_dkim_item">
|
|
{$lang->cmd_advanced_mailer_not_applicable_because_sending_method}
|
|
</div>
|
|
<!--@else-->
|
|
<!--@foreach($used_methods_with_usable_dkim as $method => $dkim)-->
|
|
<div class="spf_dkim_item">
|
|
<span class="label">{$lang->cmd_advanced_mailer_dns_hostname}</span>
|
|
<span class="monospace">{$dkim}.{$sending_domain}</span>
|
|
<a href="#" id="advanced_mailer_check_spf">{$lang->cmd_advanced_mailer_check}</a>
|
|
</div>
|
|
<div class="spf_dkim_item">
|
|
<span class="label">{$lang->cmd_advanced_mailer_txt_record}</span>
|
|
<span class="monospace">v=DKIM1; k=rsa; p=MIGfMA...{$lang->cmd_advanced_mailer_ellipsis}...QAB;</span>
|
|
</div>
|
|
{@ $other_info = Context::getLang('cmd_advanced_mailer_other_info_' . $method . '_dkim')}
|
|
{@ if(!strncmp('cmd_', $other_info, 4)) $other_info = false}
|
|
<div class="spf_dkim_item" cond="$other_info">
|
|
<span class="label">{$lang->cmd_advanced_mailer_other_info}</span>
|
|
<span>{$other_info}</span><br />
|
|
</div>
|
|
<div class="spf_dkim_separator"></div>
|
|
<!--@end-->
|
|
<!--@end-->
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|