Make MAX_NB_EMAIL_FREE_PLAN available in all email templates

This commit is contained in:
Son NK 2020-04-08 23:06:56 +02:00
parent d9d22a56e2
commit a548c84694
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ from app.config import (
ALIAS_DOMAINS,
SUPPORT_NAME,
POSTFIX_SUBMISSION_TLS,
MAX_NB_EMAIL_FREE_PLAN,
)
from app.log import LOG
from app.models import Mailbox, User
@ -33,7 +34,7 @@ def render(template_name, **kwargs) -> str:
template = env.get_template(template_name)
return template.render(**kwargs)
return template.render(MAX_NB_EMAIL_FREE_PLAN=MAX_NB_EMAIL_FREE_PLAN, **kwargs)
def send_welcome_email(user):