예제 #1
0
def send_email(recipient, subject, template_base, ctx):
    msg = postmark.create_mail(subject=subject, to=recipient)
    _fill_msg_with_template(msg, template_base, ctx)
    msg.send()
예제 #2
0
def send_mass_email(recipients, subject, template_base, ctx):
    msg = postmark.create_mail(subject=subject)
    _fill_msg_with_template(msg, template_base, ctx)
    postmark.send_bcc_batch(msg, recipients)