Notification emails #80
@ -28,6 +28,11 @@ class Command(BaseCommand):
|
|||||||
logger.info(f'{recipient} has unconfirmed email, skipping')
|
logger.info(f'{recipient} has unconfirmed email, skipping')
|
||||||
n.save()
|
n.save()
|
||||||
continue
|
continue
|
||||||
|
# FIXME test with only internal emails first
|
||||||
|
if not recipient.email.endswith('@blender.org'):
|
||||||
|
logger.info('skipping: not an internal email')
|
||||||
|
n.save()
|
||||||
|
continue
|
||||||
n.email_sent = True
|
n.email_sent = True
|
||||||
# first mark as processed, then send: avoid spamming in case of a crash-loop
|
# first mark as processed, then send: avoid spamming in case of a crash-loop
|
||||||
n.save()
|
n.save()
|
||||||
|
Loading…
Reference in New Issue
Block a user