def send_notification_email( language, recipients, notification, context=None, info=None ): """Render and sends notification email.""" send_mails.delay( get_notification_emails(language, recipients, notification, context, info) )
def send_notification_email(language, email, notification, context=None, info=None): """Render and sends notification email.""" emails = get_notification_emails(language, email, notification, context, info) send_mails.delay(emails)