highlight reddit in welcome mail

This commit is contained in:
Son NK 2021-02-12 13:03:26 +01:00
parent dc29c6f9d9
commit e7063b6514
3 changed files with 14 additions and 13 deletions

View File

@ -389,3 +389,5 @@ try:
COINBASE_YEARLY_PRICE = float(os.environ["COINBASE_YEARLY_PRICE"])
except Exception:
COINBASE_YEARLY_PRICE = 30.00
REDDIT_URL = "https://www.reddit.com/r/Simplelogin/"

View File

@ -37,6 +37,7 @@ from app.config import (
EMAIL_DOMAIN,
ALERT_DIRECTORY_DISABLED_ALIAS_CREATION,
TRANSACTIONAL_BOUNCE_EMAIL,
REDDIT_URL,
)
from app.dns_utils import get_mx_domains
from app.extensions import db
@ -85,8 +86,8 @@ def send_welcome_email(user):
send_email(
to_email,
f"Welcome to SimpleLogin",
render("com/welcome.txt", user=user, alias=alias),
render("com/welcome.html", user=user, alias=alias),
render("com/welcome.txt", user=user, alias=alias, reddit_url=REDDIT_URL),
render("com/welcome.html", user=user, alias=alias, reddit_url=REDDIT_URL),
unsubscribe_link,
via_email,
)

View File

@ -13,9 +13,9 @@
{% endcall %}
{% call text() %}
This alias is automatically created for receiving SimpleLogin news and tips -
feel free to <a href="{{ URL + '/dashboard/setting#notification' }}">disable</a> it if you don't need any of
these.
This alias is automatically created for receiving SimpleLogin news and tips. <br>
In the next coming days, we'll send you 3 emails to help you get the best out of SimpleLogin. <br>
Please <a href="{{ URL + '/dashboard/setting#notification' }}">disable</a> it if you don't need this.
{% endcall %}
{% endif %}
@ -28,7 +28,7 @@
If you are using Firefox or a Chromium-browser like Chrome, Edge, Brave, you can
install our <a href="https://addons.mozilla.org/firefox/addon/simplelogin/">Firefox add-on</a>
or <a href="https://chrome.google.com/webstore/detail/dphilobhebphkdjbpfohgikllaljmgbn">Chrome extension</a>
to create aliases in one click (literally).
to create aliases in one click (like in the below gif 👇).
{% endcall %}
{% call text() %}
@ -39,7 +39,7 @@
SimpleLogin is also available on
<a href="https://play.google.com/store/apps/details?id=io.simplelogin.android">Android</a> and
<a href="https://apps.apple.com/app/id1494359858">iOS</a>
so you can create new aliases on the fly.
so you can easily create new aliases on the go.
{% endcall %}
{% if user.in_trial() and user.trial_end %}
@ -53,14 +53,12 @@
{% endif %}
{% call text() %}
At any time, you can reach out to us by: <br>
<ul>
<li>Simply replying to this email </li>
<li>On <a href="https://twitter.com/simple_login">Twitter</a> </li>
<li>On <a href="https://www.reddit.com/r/Simplelogin/">Reddit</a></li>
</ul>
Feel free to join our Reddit to ask any question or to have updates about our latest features. <br>
If you don't have a Reddit account, this is an occasion to create a new alias 😉.
{% endcall %}
{{ render_button("Join SimpleLogin on Reddit", reddit_url) }}
{% call text() %}
SimpleLogin Team.
{% endcall %}