def send_emails_for_event(self, event): regs = event.get_registrations() print 'Sending emails for {0} ({1} students)...'.format(event.title, len(regs)) for reg in regs: send_reminder_email(reg) # email the assigned facilitators for facilitator in event.facilitators.all(): send_reminder_qc_email(event, facilitator.email) # also send a copy to the organization's main email address send_reminder_qc_email(event, settings.DEFAULT_FROM_EMAIL)
def send_emails_for_event(self, event): regs = event.get_registrations() print 'Sending emails for {0} ({1} students)...'.format( event.title, len(regs)) for reg in regs: send_reminder_email(reg) # email the assigned facilitators for facilitator in event.facilitators.all(): send_reminder_qc_email(event, facilitator.email) # also send a copy to the organization's main email address send_reminder_qc_email(event, settings.DEFAULT_FROM_EMAIL)
def send_emails_for_event(self, event): regs = event.get_registrations() print 'Sending emails for {0} ({1} students)...'.format(event.title, len(regs)) for reg in regs: send_reminder_email(reg)