def send_html_mail_jinja(subject, html_template, text_template, context,
                         *args, **kwargs):
    # Get a jinja environment so we can override autoescaping for text emails.
    with no_jinja_autoescape():
        html_template = get_env().get_template(html_template)
        text_template = get_env().get_template(text_template)
    msg = send_mail(subject, text_template.render(context),
                    html_message=html_template.render(context), *args,
                    **kwargs)
    return msg
Consume from named queue returns the Queue object.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/amo/utils.py/send_html_mail_jinja--crossover with--dataset/ETHPy150Open tweetdeck/txAMQP/src/txamqp/testlib.py/TestBase.consume