mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 23:34:05 +08:00
enable email sending retry in job runner
This commit is contained in:
parent
b9e2a79933
commit
335a89f912
1 changed files with 7 additions and 0 deletions
|
@ -38,6 +38,7 @@ def onboarding_send_from_alias(user):
|
||||||
render("com/onboarding/send-from-alias.html", user=user, to_email=to_email),
|
render("com/onboarding/send-from-alias.html", user=user, to_email=to_email),
|
||||||
unsubscribe_link,
|
unsubscribe_link,
|
||||||
via_email,
|
via_email,
|
||||||
|
retries=3,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -53,6 +54,7 @@ def onboarding_pgp(user):
|
||||||
render("com/onboarding/pgp.html", user=user, to_email=to_email),
|
render("com/onboarding/pgp.html", user=user, to_email=to_email),
|
||||||
unsubscribe_link,
|
unsubscribe_link,
|
||||||
via_email,
|
via_email,
|
||||||
|
retries=3,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -68,6 +70,7 @@ def onboarding_browser_extension(user):
|
||||||
render("com/onboarding/browser-extension.html", user=user, to_email=to_email),
|
render("com/onboarding/browser-extension.html", user=user, to_email=to_email),
|
||||||
unsubscribe_link,
|
unsubscribe_link,
|
||||||
via_email,
|
via_email,
|
||||||
|
retries=3,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -83,6 +86,7 @@ def onboarding_mailbox(user):
|
||||||
render("com/onboarding/mailbox.html", user=user, to_email=to_email),
|
render("com/onboarding/mailbox.html", user=user, to_email=to_email),
|
||||||
unsubscribe_link,
|
unsubscribe_link,
|
||||||
via_email,
|
via_email,
|
||||||
|
retries=3,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -153,6 +157,7 @@ if __name__ == "__main__":
|
||||||
"Your SimpleLogin account has been deleted",
|
"Your SimpleLogin account has been deleted",
|
||||||
render("transactional/account-delete.txt"),
|
render("transactional/account-delete.txt"),
|
||||||
render("transactional/account-delete.html"),
|
render("transactional/account-delete.html"),
|
||||||
|
retries=3,
|
||||||
)
|
)
|
||||||
elif job.name == JOB_DELETE_MAILBOX:
|
elif job.name == JOB_DELETE_MAILBOX:
|
||||||
mailbox_id = job.payload.get("mailbox_id")
|
mailbox_id = job.payload.get("mailbox_id")
|
||||||
|
@ -174,6 +179,7 @@ if __name__ == "__main__":
|
||||||
Regards,
|
Regards,
|
||||||
SimpleLogin team.
|
SimpleLogin team.
|
||||||
""",
|
""",
|
||||||
|
retries=3,
|
||||||
)
|
)
|
||||||
|
|
||||||
elif job.name == JOB_DELETE_DOMAIN:
|
elif job.name == JOB_DELETE_DOMAIN:
|
||||||
|
@ -198,6 +204,7 @@ SimpleLogin team.
|
||||||
Regards,
|
Regards,
|
||||||
SimpleLogin team.
|
SimpleLogin team.
|
||||||
""",
|
""",
|
||||||
|
retries=3,
|
||||||
)
|
)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue