mirror of
https://github.com/simple-login/app.git
synced 2024-09-30 05:31:30 +02:00
improve welcome email
This commit is contained in:
parent
09380915fb
commit
c6eba9f125
@ -54,11 +54,18 @@ def render(template_name, **kwargs) -> str:
|
|||||||
|
|
||||||
|
|
||||||
def send_welcome_email(user):
|
def send_welcome_email(user):
|
||||||
|
to_email = user.get_communication_email()
|
||||||
|
if not to_email:
|
||||||
|
return
|
||||||
|
|
||||||
|
# whether this email is sent to an alias
|
||||||
|
alias = to_email if to_email != user.email else None
|
||||||
|
|
||||||
send_email(
|
send_email(
|
||||||
user.email,
|
to_email,
|
||||||
f"Welcome to SimpleLogin {user.name}",
|
f"Welcome to SimpleLogin {user.name}",
|
||||||
render("com/welcome.txt", name=user.name, user=user),
|
render("com/welcome.txt", name=user.name, user=user, alias=alias),
|
||||||
render("com/welcome.html", name=user.name, user=user),
|
render("com/welcome.html", name=user.name, user=user, alias=alias),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,49 +11,45 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
{% if alias %}
|
||||||
{% call text() %}
|
{% call text() %}
|
||||||
My name is Son. I’m the founder of SimpleLogin and I wanted to be the first to welcome you on board.
|
This is the first email you receive via your <b>first alias</b> {{ alias }}.
|
||||||
|
This alias is automatically created when you signed up on SimpleLogin.
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|
||||||
{% call text() %}
|
{% call text() %}
|
||||||
To better secure your account, I recommend enabling Multi-Factor Authentication (MFA) on your
|
It's for receiving our news, feature announcements or tips -
|
||||||
<a href="{{ URL + '/dashboard/setting/#totp' }}">Setting page</a>.
|
feel free to <a href="{{ URL + '/dashboard/setting#notification' }}">disable</a> it if you don't need any of
|
||||||
|
these.
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% call text() %}
|
{% call text() %}
|
||||||
If you have any feedback or improvement ideas please let me know by simply replying to this email. Yes, this email
|
You can reach out to us by: <br>
|
||||||
is not sent from a no-reply address.
|
- Simply replying to this email <br>
|
||||||
{% endcall %}
|
- On <a href="https://twitter.com/simple_login">Twitter</a> <br>
|
||||||
|
- On <a href="https://www.reddit.com/r/Simplelogin/">Reddit</a>
|
||||||
{% call text() %}
|
|
||||||
To be informed of SimpleLogin latest features, you can follow our
|
|
||||||
<a href="https://twitter.com/simple_login">Twitter</a> or join our
|
|
||||||
<a href="https://www.reddit.com/r/Simplelogin/">Reddit sub</a>.
|
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|
||||||
{% if user.in_trial() and user.trial_end %}
|
{% if user.in_trial() and user.trial_end %}
|
||||||
{% call text() %}
|
{% call text() %}
|
||||||
You can use all premium features like <em>custom domain</em> or <em>alias directory</em> during the
|
When you signed up, you can use all premium features like <em>custom domain</em>, <em>alias directory</em>,
|
||||||
<b>trial period</b>. Your trial will end {{user.trial_end.humanize() }}. <br>
|
<em>mailbox</em>,
|
||||||
All aliases you create during the trial
|
<em>PGP</em> without any limit during 7 days (the "trial period"). <br>
|
||||||
will continue to work normally when the trial ends.
|
No worries: all aliases you create during this period
|
||||||
|
will continue to work normally even if you don't upgrade.
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% call text() %}
|
{% call text() %}
|
||||||
In the next coming days, you are going to receive some onboarding emails to quickly present some SimpleLogin
|
Please don't hesitate to talk around you about the benefits of using <b>email alias</b>
|
||||||
features.
|
to protect your personal email address and your privacy. <br>
|
||||||
If you don't want to receive these emails, you can disable them in your
|
|
||||||
<a href="{{ URL + '/dashboard/setting#notification' }}">notification settings</a>.
|
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|
||||||
{% call text() %}
|
{% call text() %}
|
||||||
Thanks, <br/>
|
Let's make spammers and Big Tech's life harder.<br/>
|
||||||
SimpleLogin Team.
|
SimpleLogin Team.
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user