create email templates

This commit is contained in:
Son NK 2020-01-16 22:27:45 +01:00
parent 13283b6327
commit a03db0d129
3 changed files with 21 additions and 2 deletions

View File

@ -115,7 +115,7 @@ def send_cannot_create_directory_alias(user, alias, directory):
directory=directory,
),
_render(
"cannot-create-alias-directory.txt",
"cannot-create-alias-directory.html",
name=user.name,
alias=alias,
directory=directory,
@ -134,7 +134,10 @@ def send_cannot_create_domain_alias(user, alias, domain):
"cannot-create-alias-domain.txt", name=user.name, alias=alias, domain=domain
),
_render(
"cannot-create-alias-domain.txt", name=user.name, alias=alias, domain=domain
"cannot-create-alias-domain.html",
name=user.name,
alias=alias,
domain=domain,
),
)

View File

@ -0,0 +1,8 @@
Hi {{name}} <br><br>
An email has been sent to the alias <b>{{alias}}</b> that would be created automatically as you own the directory <b>{{directory}}</b>. However as your plan is no longer premium, this creation cannot happen.<br><br>
Please upgrade to premium plan in order to use this feature.<br><br>
Best,<br>
SimpleLogin team.

View File

@ -0,0 +1,8 @@
Hi {{name}} <br><br>
An email has been sent to the alias <b>{{alias}}</b> that would be created automatically as you own the domain <b>{{domain}}</b>. However as your plan is no longer premium, this creation cannot happen.<br><br>
Please upgrade to premium plan in order to use this feature.<br><br>
Best,<br>
SimpleLogin team.