mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-25 09:30:31 +00:00
ba44a15891
Code cosmetics #75: - More debug infos for kindlegen and sending e-mail. - Button for sending test e-mail. - timeout of 5min for sending e-mail
37 lines
1.8 KiB
HTML
37 lines
1.8 KiB
HTML
{% extends "layout.html" %}
|
|
{% block body %}
|
|
<div class="discover">
|
|
<h1>{{title}}</h1>
|
|
<form role="form" method="POST">
|
|
<div class="form-group">
|
|
<label for="mail_server">{{_('SMTP hostname')}}</label>
|
|
<input type="text" class="form-control" name="mail_server" id="mail_server" value="{{content.mail_server}}">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="mail_port">{{_('SMTP port (usually 25 for plain SMTP and 587 for SSL)')}}</label>
|
|
<input type="text" class="form-control" name="mail_port" id="mail_port" value="{{content.mail_port}}">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="mail_use_ssl">{{_('Server uses SSL (StartTLS)')}}</label>
|
|
<input type="checkbox" name="mail_use_ssl" id="mail_use_ssl" {% if content.mail_use_ssl %}checked{% endif %}>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="mail_login">{{_('SMTP login')}}</label>
|
|
<input type="text" class="form-control" name="mail_login" id="mail_login" value="{{content.mail_login}}">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="mail_password">{{_('SMTP password')}}</label>
|
|
<input type="password" class="form-control" name="mail_password" id="mail_password" value="{{content.mail_password}}">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="mail_from">{{_('From e-mail')}}</label>
|
|
<input type="text" class="form-control" name="mail_from" id="mail_from" value="{{content.mail_from}}">
|
|
</div>
|
|
<button type="submit" name="submit" value="submit" class="btn btn-default">{{_('Save settings')}}</button>
|
|
<button type="submit" name="test" value="test" class="btn btn-default">{{_('Save settings and send Test E-Mail')}}</button>
|
|
<a href="{{ url_for('user_list') }}" class="btn btn-default">{{_('Back')}}</a>
|
|
</form>
|
|
|
|
</div>
|
|
{% endblock %}
|