Skip to content

Commit

Permalink
support reply to in backoffice mail for an easier process
Browse files Browse the repository at this point in the history
  • Loading branch information
stitch committed Sep 19, 2024
1 parent fbff1b2 commit 251a67e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dashboard/internet_nl_dashboard/views/signup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def send_backoffice_mail_async(form_data):
<br>
Signup details:<br>
<pre>{json_content}</pre><br>
<br>
Kind regards,<br>
The Dashboard Team<br>
<br>
Expand All @@ -73,6 +72,8 @@ def send_backoffice_mail_async(form_data):
sender=config.EMAIL_NOTIFICATION_SENDER,
recipients=email_addresses,
subject=email_subject,
# how to set the reply to: https://github.com/Bearle/django_mail_admin/blob/master/docs/usage.rst#L148
headers={'Reply-to': form_data.get('email', config.EMAIL_NOTIFICATION_SENDER)},
message=email_content.replace("<br>", ""),
priority=models.PRIORITY.now,
html_message=email_content,
Expand Down

0 comments on commit 251a67e

Please sign in to comment.