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):
|
||||
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(
|
||||
user.email,
|
||||
to_email,
|
||||
f"Welcome to SimpleLogin {user.name}",
|
||||
render("com/welcome.txt", name=user.name, user=user),
|
||||
render("com/welcome.html", 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, alias=alias),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -11,49 +11,45 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if alias %}
|
||||
{% 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 %}
|
||||
|
||||
{% call text() %}
|
||||
To better secure your account, I recommend enabling Multi-Factor Authentication (MFA) on your
|
||||
<a href="{{ URL + '/dashboard/setting/#totp' }}">Setting page</a>.
|
||||
It's for receiving our news, feature announcements or tips -
|
||||
feel free to <a href="{{ URL + '/dashboard/setting#notification' }}">disable</a> it if you don't need any of
|
||||
these.
|
||||
{% endcall %}
|
||||
{% endif %}
|
||||
|
||||
{% call text() %}
|
||||
If you have any feedback or improvement ideas please let me know by simply replying to this email. Yes, this email
|
||||
is not sent from a no-reply address.
|
||||
{% endcall %}
|
||||
|
||||
{% 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>.
|
||||
You can reach out to us by: <br>
|
||||
- Simply replying to this email <br>
|
||||
- On <a href="https://twitter.com/simple_login">Twitter</a> <br>
|
||||
- On <a href="https://www.reddit.com/r/Simplelogin/">Reddit</a>
|
||||
{% endcall %}
|
||||
|
||||
{% if user.in_trial() and user.trial_end %}
|
||||
{% call text() %}
|
||||
You can use all premium features like <em>custom domain</em> or <em>alias directory</em> during the
|
||||
<b>trial period</b>. Your trial will end {{user.trial_end.humanize() }}. <br>
|
||||
All aliases you create during the trial
|
||||
will continue to work normally when the trial ends.
|
||||
When you signed up, you can use all premium features like <em>custom domain</em>, <em>alias directory</em>,
|
||||
<em>mailbox</em>,
|
||||
<em>PGP</em> without any limit during 7 days (the "trial period"). <br>
|
||||
No worries: all aliases you create during this period
|
||||
will continue to work normally even if you don't upgrade.
|
||||
{% endcall %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% call text() %}
|
||||
In the next coming days, you are going to receive some onboarding emails to quickly present some SimpleLogin
|
||||
features.
|
||||
If you don't want to receive these emails, you can disable them in your
|
||||
<a href="{{ URL + '/dashboard/setting#notification' }}">notification settings</a>.
|
||||
Please don't hesitate to talk around you about the benefits of using <b>email alias</b>
|
||||
to protect your personal email address and your privacy. <br>
|
||||
{% endcall %}
|
||||
|
||||
{% call text() %}
|
||||
Thanks, <br/>
|
||||
Let's make spammers and Big Tech's life harder.<br/>
|
||||
SimpleLogin Team.
|
||||
{% endcall %}
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue