diff --git a/dandiapi/api/mail.py b/dandiapi/api/mail.py index 63d5192f4..7b0a5b4d1 100644 --- a/dandiapi/api/mail.py +++ b/dandiapi/api/mail.py @@ -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') @@ -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], ) diff --git a/dandiapi/api/templates/api/mail/dandiset_unembargo_failed.html b/dandiapi/api/templates/api/mail/dandiset_unembargo_failed.html index 176a49476..7a4b1356c 100644 --- a/dandiapi/api/templates/api/mail/dandiset_unembargo_failed.html +++ b/dandiapi/api/templates/api/mail/dandiset_unembargo_failed.html @@ -2,5 +2,6 @@ {{dandiset.identifier }}. 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.


You are receiving this email because you are an owner of this dandiset. \ No newline at end of file