2021-04-16 07:19:59 +02:00
|
|
|
{% if mailOption == "option-smtp" %}
|
|
|
|
<div id="mail-smtp" data-enabled='true'>
|
2021-05-10 21:40:55 +02:00
|
|
|
<input type='text' name='smtp-domain' id='smtp-domain' placeholder='domain'value="{{mailConfig['smtp']['domain']}}"/>
|
|
|
|
<input type='text' name='smtp-email' id='smtp-email' placeholder='email' value="{{mailConfig['smtp']['email']}}" />
|
|
|
|
<input type='text' name='smtp-pass' id='smtp-pass' placeholder='password' value="{{mailConfig['smtp']['password']}}"/>
|
2021-04-16 07:19:59 +02:00
|
|
|
</div>
|
|
|
|
<div id="mail-mg" data-enabled='false'>
|
2021-05-10 21:40:55 +02:00
|
|
|
<input type='text' name='mg-domain' id='mg-domain' placeholder='domain' value="{{mailConfig['mailgun']['domain']}}" />
|
|
|
|
<input type='text' name='mg-key' id='mg-key' placeholder='api key' value="{{mailConfig['mailgun']['key']}}"/>
|
2021-04-16 07:19:59 +02:00
|
|
|
</div>
|
|
|
|
{% elseif(mailOption == 'option-mg') %}
|
|
|
|
<div id="mail-smtp" data-enabled='false'>
|
2021-05-10 21:40:55 +02:00
|
|
|
<input type='text' name='smtp-domain' id='smtp-domain' placeholder='domain'value="{{mailConfig['smtp']['domain']}}"/>
|
|
|
|
<input type='text' name='smtp-email' id='smtp-email' placeholder='email' value="{{mailConfig['smtp']['email']}}" />
|
|
|
|
<input type='text' name='smtp-pass' id='smtp-pass' placeholder='password' value="{{mailConfig['smtp']['password']}}"/>
|
2021-04-16 07:19:59 +02:00
|
|
|
</div>
|
|
|
|
<div id="mail-mg" data-enabled='true'>
|
2021-05-10 21:40:55 +02:00
|
|
|
<input type='text' name='mg-domain' id='mg-domain' placeholder='domain' value="{{mailConfig['mailgun']['domain']}}" />
|
|
|
|
<input type='text' name='mg-key' id='mg-key' placeholder='api key' value="{{mailConfig['mailgun']['key']}}"/>
|
2021-04-16 07:19:59 +02:00
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div id="mail-smtp" data-enabled='false'>
|
2021-05-10 21:40:55 +02:00
|
|
|
<input type='text' name='smtp-domain' id='smtp-domain' placeholder='domain'value="{{mailConfig['smtp']['domain']}}"/>
|
|
|
|
<input type='text' name='smtp-email' id='smtp-email' placeholder='email' value="{{mailConfig['smtp']['email']}}" />
|
|
|
|
<input type='text' name='smtp-pass' id='smtp-pass' placeholder='password' value="{{mailConfig['smtp']['password']}}"/>
|
2021-04-16 07:19:59 +02:00
|
|
|
</div>
|
|
|
|
<div id="mail-mg" data-enabled='false'>
|
2021-05-10 21:40:55 +02:00
|
|
|
<input type='text' name='mg-domain' id='mg-domain' placeholder='domain' value="{{mailConfig['mailgun']['domain']}}" />
|
|
|
|
<input type='text' name='mg-key' id='mg-key' placeholder='api key' value="{{mailConfig['mailgun']['key']}}"/>
|
2021-04-16 07:19:59 +02:00
|
|
|
</div>
|
|
|
|
{% endif %}
|