Skip to content

Commit 7ea8a3f

Browse files
committed
Tweaked the gdpr reminder command to avoid bounces to RT and copies to gmail.
- Legacy-Id: 15480
1 parent 120d78b commit 7ea8a3f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ietf/utils/management/commands/send_gdpr_consent_request.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ def add_arguments(self, parser):
4242

4343

4444
def handle(self, *args, **options):
45+
# Don't send copies of the whole bulk mailing to the debug mailbox
46+
settings.EMAIL_COPY_TO = "Email Debug Copy <outbound@ietf.org>"
47+
#
4548
event_type = 'gdpr_notice_email'
4649
# Arguments
4750
# --date
@@ -79,7 +82,7 @@ def handle(self, *args, **options):
7982
if not to:
8083
to = [ e.address for e in person.email_set.all() ] # pyflakes:ignore
8184
self.stdout.write("Sendimg email to %s" % to)
82-
send_mail(None, to, None,
85+
send_mail(None, to, "<gdprnoreply@ietf.org>",
8386
subject='Personal Information in the IETF Datatracker',
8487
template='utils/personal_information_notice.txt',
8588
context={

0 commit comments

Comments
 (0)