diff --git a/app/email_utils.py b/app/email_utils.py index 6db6d220..3645be71 100644 --- a/app/email_utils.py +++ b/app/email_utils.py @@ -31,8 +31,12 @@ def send_activation_email(email, name, activation_link): send_by_postfix( email, f"{name}, just one more step to join SimpleLogin", - _render("activation.txt", name=name, activation_link=activation_link), - _render("activation.html", name=name, activation_link=activation_link), + _render( + "activation.txt", name=name, activation_link=activation_link, email=email + ), + _render( + "activation.html", name=name, activation_link=activation_link, email=email + ), ) diff --git a/templates/emails/activation.html b/templates/emails/activation.html index cf6cc4b2..b1ba1e05 100644 --- a/templates/emails/activation.html +++ b/templates/emails/activation.html @@ -1,249 +1,9 @@ - - - - - - +{% extends "base.html" %} - +{% block content %} + {{ render_text("Hi " + name + ",") }} + {{ render_text("Thank you for choosing SimpleLogin.") }} + {{ render_text("To get started, please confirm that " + email + " is your email address by clicking on the button below or use this link " + activation_link + " within 1 hour.") }} + {{ render_button("Verify", activation_link) }} +{% endblock %} - - - - SimpleLogin | One more step - - - - - - - - - -
- - - - - - - - - - -
- - - - - - - - Logo - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Hi {{name}}! -
- Our mission is to protect our online identity. This should be *simple*. -
- To get started, we need to confirm your email address, so please click this link -to finish creating your account. -
-
- Activate - -
-
- Cheers.
- Son - SimpleLogin founder. -

-
- Have a question? son@simplelogin.io -
- - - - - - - - - - - - - - - - - - -
- - -
- - - \ No newline at end of file diff --git a/templates/emails/activation.txt b/templates/emails/activation.txt index ddefe502..70350724 100644 --- a/templates/emails/activation.txt +++ b/templates/emails/activation.txt @@ -1,14 +1,8 @@ -Hi {{name}}! +Hi {{name}}, -Our mission is to protect our online identity. This should be *simple*. +Thank you for choosing SimpleLogin. -To get started, we need to confirm your email address, so please click this link -to finish creating your account. +To get started, please confirm that {{email}} is your email address using this link {{activation_link}} within 1 hour. -{{activation_link}} - -Your feedbacks are very important to us. Please feel free to reply to this email to let us know any -of your suggestion! - -Thanks! +Cheers, Son - SimpleLogin founder.