You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
488 B

  1. from django.conf import settings
  2. from djmail.template_mail import InlineCSSTemplateMail
  3. def send(name, to, ctx):
  4. o = InlineCSSTemplateMail(name)
  5. ctx["SITE_ROOT"] = settings.SITE_ROOT
  6. o.send(to, ctx)
  7. def login(to, ctx):
  8. send("login", to, ctx)
  9. def set_password(to, ctx):
  10. send("set-password", to, ctx)
  11. def alert(to, ctx):
  12. send("alert", to, ctx)
  13. def verify_email(to, ctx):
  14. send("verify-email", to, ctx)
  15. def report(to, ctx):
  16. send("report", to, ctx)