def send_alert_confirmation(alert):
 ctx = Context({'alert': alert, 'site': Site.objects.get_current()})
 subject_tpl = loader.get_template('customer/alerts/emails/confirmation_subject.txt')
 body_tpl = loader.get_template('customer/alerts/emails/confirmation_body.txt')
 mail.send_mail(subject_tpl.render(ctx).strip(), body_tpl.render(ctx), settings.OSCAR_FROM_EMAIL, [alert.email])

def send_alert_confirmation ( alert ) : ctx = Context ( { 'alert' : alert , 'site' : Site . objects . get_current ( ) } ) subject_tpl = loader . get_template ( 'customer/alerts/emails/confirmation_subject.txt' ) body_tpl = loader . get_template ( 'customer/alerts/emails/confirmation_body.txt' ) mail . send_mail ( subject_tpl . render ( ctx ) . strip ( ) , body_tpl . render ( ctx ) , settings . OSCAR_FROM_EMAIL , [ alert . email ] )
send an alert confirmation email .