use website_email instead of website_from for automatic-disable-alias email

This commit is contained in:
Son NK 2020-04-05 11:58:13 +02:00
parent 5ce21bfa16
commit b2f22db9f6
2 changed files with 2 additions and 4 deletions

View File

@ -640,12 +640,11 @@ def handle_bounce(
send_email(
# use user mail here as only user is authenticated to see the refused email
user.email,
f"Alias {address} has been disabled due to second undelivered email from {contact.website_from}",
f"Alias {address} has been disabled due to second undelivered email from {contact.website_email}",
render(
"transactional/automatic-disable-alias.txt",
name=user.name,
alias=alias,
website_from=contact.website_from,
website_email=contact.website_email,
refused_email_url=refused_email_url,
mailbox_email=mailbox_email,
@ -654,7 +653,6 @@ def handle_bounce(
"transactional/automatic-disable-alias.html",
name=user.name,
alias=alias,
website_from=contact.website_from,
website_email=contact.website_email,
refused_email_url=refused_email_url,
mailbox_email=mailbox_email,

View File

@ -1,6 +1,6 @@
Hi {{name}}
There are at least 2 emails sent to your alias {{alias.email}} from {{website_from}} that have been refused (or bounced) by your mailbox {{mailbox_email}}.
There are at least 2 emails sent to your alias {{alias.email}} from {{website_email}} that have been refused (or bounced) by your mailbox {{mailbox_email}}.
This is usually due to the email being considered as spam by your email provider.
You can view this email here: