Add code in shell to test email template
This commit is contained in:
parent
641f8dfe9e
commit
b08b584102
19
shell.py
19
shell.py
|
@ -46,6 +46,23 @@ with app.app_context():
|
||||||
# to test email template
|
# to test email template
|
||||||
# with open("/tmp/email.html", "w") as f:
|
# with open("/tmp/email.html", "w") as f:
|
||||||
# user = User.get(1)
|
# user = User.get(1)
|
||||||
# f.write(_render("welcome.html", user=user, name=user.name))
|
# f.write(
|
||||||
|
# render(
|
||||||
|
# "transactional/reset-password.html",
|
||||||
|
# email=user.email,
|
||||||
|
# user=user,
|
||||||
|
# name=user.name,
|
||||||
|
# activation_link="https://ab.cd",
|
||||||
|
# alias="alias@ab.cd",
|
||||||
|
# directory="dir",
|
||||||
|
# domain="domain",
|
||||||
|
# new_email="new@email.com",
|
||||||
|
# current_email="current@email.com",
|
||||||
|
# link="https://link.com",
|
||||||
|
# mailbox_email="mailbox_email@email.com",
|
||||||
|
# sender="sender@example.com",
|
||||||
|
# reset_password_link="http://reset_password_link",
|
||||||
|
# )
|
||||||
|
# )
|
||||||
|
|
||||||
embed()
|
embed()
|
||||||
|
|
Loading…
Reference in New Issue