update reply-must-use-personal-email template

This commit is contained in:
Son NK 2020-09-29 11:00:50 +02:00
parent 571e39bb30
commit 17ef292779
3 changed files with 12 additions and 4 deletions

View File

@ -1011,6 +1011,9 @@ def handle_unknown_mailbox(
contact, contact,
) )
authorize_address_link = (
f"{URL}/dashboard/mailbox/{alias.mailbox_id}/#authorized-address"
)
send_email_with_rate_control( send_email_with_rate_control(
user, user,
ALERT_REVERSE_ALIAS_UNKNOWN_MAILBOX, ALERT_REVERSE_ALIAS_UNKNOWN_MAILBOX,
@ -1021,12 +1024,14 @@ def handle_unknown_mailbox(
name=user.name, name=user.name,
alias=alias, alias=alias,
sender=envelope.mail_from, sender=envelope.mail_from,
authorize_address_link=authorize_address_link,
), ),
render( render(
"transactional/reply-must-use-personal-email.html", "transactional/reply-must-use-personal-email.html",
name=user.name, name=user.name,
alias=alias, alias=alias,
sender=envelope.mail_from, sender=envelope.mail_from,
authorize_address_link=authorize_address_link,
), ),
) )

View File

@ -15,16 +15,19 @@
{% endcall %} {% endcall %}
{% call text() %} {% call text() %}
This is to protect against "email spoofing", i.e. someone else sending emails from your mailbox. <br> This is to protect against <b>email spoofing</b>, i.e. someone else sending emails from your mailbox. <br>
Indeed only you can send emails on behalf of your alias. <br> If {{ sender }} can indeed send emails from your alias, you can add it to the allow list:
If you think this is a wrong alert, please let us know by replying to this email.
{% endcall %} {% endcall %}
{{ render_button("Allow " + sender, authorize_address_link) }}
{% call text() %} {% call text() %}
Thanks, <br/> Thanks, <br/>
SimpleLogin Team. SimpleLogin Team.
{% endcall %} {% endcall %}
{{ raw_url(authorize_address_link) }}
{% endblock %} {% endblock %}

View File

@ -9,7 +9,7 @@ Please note that sending from this alias only works from one of these mailboxes:
{% endfor %} {% endfor %}
This is to protect against "email spoofing", i.e. someone else sending emails from your mailbox. This is to protect against "email spoofing", i.e. someone else sending emails from your mailbox.
Indeed only you can send emails on behalf of your alias. If {{ sender }} can indeed send emails from your alias, you can add it to the allow list on {{authorize_address_link}}
If you think this is a wrong alert, please let us know by replying to this email. If you think this is a wrong alert, please let us know by replying to this email.