Beispiel #1
0
def send_email(template, context,  to, subject):
    email = TemplateEmailer(
                template=template,
                context=context,
                subject=subject,
                to=to,
            )
    email.send()
Beispiel #2
0
def test_email():
    templates = ['flights/emails/set_up_notifications.html',]
    for template in templates:
        email = TemplateEmailer(
                    template=template,
                    context={},
                    subject='testing',
                    to=['*****@*****.**',],
                )
        email.send()
Beispiel #3
0
def test_email():
    templates = ["flights/emails/set_up_notifications.html"]
    for template in templates:
        email = TemplateEmailer(template=template, context={}, subject="testing", to=["*****@*****.**"])
        email.send()
Beispiel #4
0
def send_email(template, context, to, subject):
    email = TemplateEmailer(template=template, context=context, subject=subject, to=to)
    email.send()