Skip to content

Commit

Permalink
Add reply-to to failed unembargo email
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Jul 22, 2024
1 parent 566295a commit 93d9392
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dandiapi/api/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ def build_message( # noqa: PLR0913
html_message: str | None = None,
cc: list[str] | None = None,
bcc: list[str] | None = None,
reply_to: list[str] | None = None,
):
email_message = mail.EmailMultiAlternatives(
subject=subject, body=message, to=to, cc=cc, bcc=bcc
subject=subject, body=message, to=to, cc=cc, bcc=bcc, reply_to=reply_to
)
if html_message is not None:
email_message.attach_alternative(html_message, 'text/html')
Expand Down Expand Up @@ -230,6 +231,7 @@ def build_dandiset_unembargo_failed_message(dandiset: Dandiset):
html_message=html_message,
to=[owner.email for owner in dandiset.owners],
bcc=[settings.DANDI_DEV_EMAIL],
reply_to=[ADMIN_EMAIL],
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<a href="{{ dandiset.ui_link }}">{{dandiset.identifier }}</a>. This has been reported to the developers, and will be
investigated as soon as possible. We hope to have this resolved soon! Please avoid making any major changes to this
dandiset in the meantime, as that may hinder or delay the process of resolving this issue.
If in two business days your dandiset is still embargoed, please reply to this email.
<br><br><br>
<em>You are receiving this email because you are an owner of this dandiset.</em>

0 comments on commit 93d9392

Please sign in to comment.