fix onboarding email

This commit is contained in:
Son NK 2020-09-12 15:51:43 +02:00
parent 1026f0763d
commit 85beb774c7
9 changed files with 16 additions and 16 deletions

View File

@ -59,8 +59,8 @@ def onboarding_send_from_alias(user):
send_email(
to_email,
f"Do you know you can send emails from your alias?",
render("com/onboarding/send-from-alias.txt", user=user),
render("com/onboarding/send-from-alias.html", user=user),
render("com/onboarding/send-from-alias.txt", user=user, to_email=to_email),
render("com/onboarding/send-from-alias.html", user=user, to_email=to_email),
)
@ -72,8 +72,8 @@ def onboarding_pgp(user):
send_email(
to_email,
f"Do you know you can encrypt your emails so only you can read them?",
render("com/onboarding/pgp.txt", user=user),
render("com/onboarding/pgp.html", user=user),
render("com/onboarding/pgp.txt", user=user, to_email=to_email),
render("com/onboarding/pgp.html", user=user, to_email=to_email),
)
@ -85,8 +85,8 @@ def onboarding_browser_extension(user):
send_email(
to_email,
f"Have you tried SimpleLogin Chrome/Firefox extensions and Android/iOS apps?",
render("com/onboarding/browser-extension.txt", user=user),
render("com/onboarding/browser-extension.html", user=user),
render("com/onboarding/browser-extension.txt", user=user, to_email=to_email),
render("com/onboarding/browser-extension.html", user=user, to_email=to_email),
)
@ -98,8 +98,8 @@ def onboarding_mailbox(user):
send_email(
to_email,
f"Do you know you can have multiple mailboxes on SimpleLogin?",
render("com/onboarding/mailbox.txt", user=user),
render("com/onboarding/mailbox.html", user=user),
render("com/onboarding/mailbox.txt", user=user, to_email=to_email),
render("com/onboarding/mailbox.html", user=user, to_email=to_email),
)

View File

@ -25,6 +25,6 @@
{% endblock %}
{% block footer %}
This email is sent to {{ user.email }} and is part of our onboarding series. Unsubscribe on
This email is sent to {{ to_email }} and is part of our onboarding series. Unsubscribe on
<a href="{{ URL }}/dashboard/setting#notification">Settings</a>
{% endblock %}

View File

@ -1,4 +1,4 @@
This email is sent to {{ user.email }} and is part of our onboarding series.
This email is sent to {{ to_email }} and is part of our onboarding series.
Unsubscribe from our emails on {{URL}}/dashboard/setting#notification
----------------

View File

@ -29,6 +29,6 @@
{% endblock %}
{% block footer %}
This email is sent to {{ user.email }} and is part of our onboarding series. Unsubscribe on
This email is sent to {{ to_email }} and is part of our onboarding series. Unsubscribe on
<a href="{{ URL }}/dashboard/setting#notification">Settings</a>
{% endblock %}

View File

@ -1,4 +1,4 @@
This email is sent to {{ user.email }} and is part of our onboarding series.
This email is sent to {{ to_email }} and is part of our onboarding series.
Unsubscribe from our emails on {{URL}}/dashboard/setting#notification
----------------

View File

@ -26,6 +26,6 @@
{% endblock %}
{% block footer %}
This email is sent to {{ user.email }} and is part of our onboarding series. Unsubscribe on
This email is sent to {{ to_email }} and is part of our onboarding series. Unsubscribe on
<a href="{{ URL }}/dashboard/setting#notification">Settings</a>
{% endblock %}

View File

@ -1,4 +1,4 @@
This email is sent to {{ user.email }} and is part of our onboarding series.
This email is sent to {{ to_email }} and is part of our onboarding series.
Unsubscribe from our emails on {{URL}}/dashboard/setting#notification
----------------

View File

@ -42,6 +42,6 @@
{% endblock %}
{% block footer %}
This email is sent to {{ user.email }} and is part of our onboarding series. Unsubscribe on
This email is sent to {{ to_email }} and is part of our onboarding series. Unsubscribe on
<a href="{{ URL }}/dashboard/setting#notification">Settings</a>
{% endblock %}

View File

@ -1,4 +1,4 @@
This email is sent to {{ user.email }} and is part of our onboarding series.
This email is sent to {{ to_email }} and is part of our onboarding series.
Unsubscribe from our emails on {{URL}}/dashboard/setting#notification
----------------