Skip to content

Commit 907d7b9

Browse files
committed
Changed the community tool email notification code to not try to send to nobody, and to use individual To: addressing rather bulk Bcc: addressing.
- Legacy-Id: 5536
1 parent 1bb7970 commit 907d7b9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ietf/community/models.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,11 @@ def notify_by_email(self):
220220
subject = '%s notification: Changes on %s' % (l.long_name(), self.event.doc.name)
221221
context = {'notification': self.event,
222222
'clist': l}
223-
to_email = ''
224223
filter_subscription = {'community_list': l}
225224
if not self.significant:
226225
filter_subscription['significant'] = False
227-
bcc = ','.join(list(set([i.email for i in EmailSubscription.objects.filter(**filter_subscription)])))
228-
send_mail(None, to_email, from_email, subject, 'community/public/notification_email.txt', context, bcc=bcc)
226+
for to_email in list(set([i.email for i in EmailSubscription.objects.filter(**filter_subscription)])):
227+
send_mail(None, to_email, from_email, subject, 'community/public/notification_email.txt', context)
229228

230229

231230
def notify_events(sender, instance, **kwargs):

0 commit comments

Comments
 (0)