MailConfigChecker/views/smarty/admin/mailTester.tpl
2024-06-04 14:20:20 +02:00

71 lines
3.1 KiB
Smarty

[{include file="headitem.tpl" title="d3mxd3cleartmp"|oxmultilangassign}]
[{include file="@d3mailconfigchecker/admin/inc_bootstrap.tpl"}]
[{if $readonly}]
[{assign var="readonly" value="readonly disabled"}]
[{else}]
[{assign var="readonly" value=""}]
[{/if}]
<form name="transfer" id="transfer" action="[{$oViewConf->getSelfLink()}]" method="post">
[{$oViewConf->getHiddenSid()}]
<input type="hidden" name="oxid" value="[{$oxid}]">
<input type="hidden" name="oxidCopy" value="[{$oxid}]">
<input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
</form>
[{if $success}]
<div class="alert alert-success">[{oxmultilang ident="D3_MAILCHECKER_TESTMAIL_SUCCESS"}]</div>
[{/if}]
<div class="col-12 col-md-10 col-lg-8 mb-4">
[{oxmultilang ident="D3_MAILCHECKER_TESTMAIL_DESC"}]
</div>
<h5>[{oxmultilang ident="D3_MAILCHECKER_SPFRESULT_LINKS"}]</h5>
<ul>
<li>
<a href="https://mxtoolbox.com/EmailHeaders.aspx">
[{oxmultilang ident="D3_MAILCHECKER_TESTMAIL_HEADERANALYSIS"}]
</a>
</li>
</ul>
<div class="row">
<div class="col-12 col-md-6 col-lg-4 mb-4">
<form name="myedit" id="myedit" action="[{$oViewConf->getSelfLink()}]" method="post">
[{$oViewConf->getHiddenSid()}]
<input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
<input type="hidden" name="fnc" value="sendMail">
<div>
<label class="col-4 form-label" for="sender">[{oxmultilang ident="D3_MAILCHECKER_SMTPCHECK_SENDER"}]</label>
<select name="from" class="col-7 editinput" id="sender">
[{foreach from=$oView->getMailAddressList() item="address"}]
<option value="[{$address}]" [{if $sender == $address}]selected[{/if}]>[{$address}]</option>
[{/foreach}]
</select>
</div>
<div>
<label class="col-4 form-label" for="recipient">[{oxmultilang ident="D3_MAILCHECKER_SMTPCHECK_RECIPIENT"}]</label>
<input name="to" type="text" class="col-7 editinput" size="35" maxlength="255" id="recipient" value="[{$recipient}]">
</div>
<div>
<label class="col-4 form-label" for="subject">[{oxmultilang ident="D3_MAILCHECKER_TESTMAIL_SUBJECT"}]</label>
<input type="text" class="col-7 editinput" id="subject" maxlength="255" name="subject" value="[{$subject}]">
</div>
<div>
<label class="col-4 form-label" for="body">[{oxmultilang ident="D3_MAILCHECKER_TESTMAIL_BODY"}]</label>
<textarea name="body" class="col-7 editinput" id="body" maxlength="255" style="height: 100px">[{strip}]
[{$body}]
[{/strip}]</textarea>
</div>
<div>
<button type="submit" class="btn btn-primary offset-4">[{oxmultilang ident="D3_MAILCHECKER_TESTMAIL_SENDMAIL"}]</button>
</div>
</form>
</div>
</div>
[{include file="bottomnaviitem.tpl"}]
[{include file="bottomitem.tpl"}]