2017-09-24 00:44:29 +02:00
|
|
|
{% extends "zerver/base.html" %}
|
2021-04-16 17:48:20 +02:00
|
|
|
{% set entrypoint = "dev-email-log" %}
|
2017-09-24 00:44:29 +02:00
|
|
|
{% block content %}
|
|
|
|
<div class="container">
|
2017-10-05 19:53:49 +02:00
|
|
|
<div style="position: fixed">
|
|
|
|
<div class="alert">
|
|
|
|
All the emails sent in the Zulip development environment are logged here. You can also
|
|
|
|
manually generate most of the emails by clicking <a href="/emails/generate">here</a>.
|
|
|
|
To clear this log click <a href="/emails/clear">here</a>
|
|
|
|
</div>
|
|
|
|
<div style="text-align:right">
|
|
|
|
<label>
|
2019-02-13 18:51:26 +01:00
|
|
|
<input type="checkbox" autocomplete="off" id="toggle"/>
|
2017-10-05 19:53:49 +02:00
|
|
|
<strong>Show text only version</strong>
|
|
|
|
</label>
|
2017-10-25 01:58:05 +02:00
|
|
|
<a href="#" data-toggle="modal" data-target="#forward_email_modal">
|
2020-10-30 20:14:37 +01:00
|
|
|
<strong>Forward emails to an email account</strong>
|
2017-10-25 01:58:05 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="padding-top:100px">
|
|
|
|
{{ log |safe }}
|
|
|
|
</div>
|
|
|
|
<div id="forward_email_modal" class="modal hide" tabindex="-1" role="dialog" aria-hidden="true">
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="input-group">
|
|
|
|
<form id="smtp_form">
|
|
|
|
{{ csrf_input }}
|
|
|
|
<div class="alert alert-info"
|
2018-04-05 08:38:46 +02:00
|
|
|
id="smtp_form_status" style="display:none;">
|
2017-10-25 01:58:05 +02:00
|
|
|
Updated successfully.
|
|
|
|
</div>
|
|
|
|
<label for="forward">
|
|
|
|
<strong>Forwards all emails sent in the
|
|
|
|
development environment to an external
|
|
|
|
mail account.
|
|
|
|
</strong>
|
|
|
|
</label>
|
|
|
|
<label class="radio">
|
|
|
|
<input name="forward" type="radio" value="enabled" {% if forward_address %}checked{% endif %}/>Yes
|
|
|
|
</label>
|
|
|
|
<label class="radio">
|
|
|
|
<input name="forward" type="radio" value="disabled" {% if not forward_address %}checked{% endif %}/>No
|
|
|
|
</label>
|
|
|
|
<div id="forward_address_sections" {% if not forward_address %}style="display:none;"{% endif %}>
|
|
|
|
<label for="forward_address"><strong>Address to which emails should be forwarded</strong></label>
|
|
|
|
<input type="text" id="address" name="forward_address" placeholder="eg: your-email@example.com" value="{{forward_address}}"/>
|
|
|
|
</div>
|
2021-04-21 00:46:14 +02:00
|
|
|
<br />
|
2017-10-25 01:58:05 +02:00
|
|
|
<div class="alert alert-info">
|
2020-10-13 23:50:18 +02:00
|
|
|
You must set up SMTP as described
|
2020-05-26 05:15:21 +02:00
|
|
|
<a target="_blank" rel="noopener noreferrer" href="https://zulip.readthedocs.io/en/latest/subsystems/email.html#development-and-testing">
|
2017-10-25 01:58:05 +02:00
|
|
|
here</a> first before enabling this.
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button id='save_smptp_details'>Update</button>
|
|
|
|
<button data-dismiss="modal">Close</button>
|
2017-10-05 19:53:49 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-24 00:44:29 +02:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|