mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
highlight reddit in welcome mail
This commit is contained in:
parent
dc29c6f9d9
commit
e7063b6514
3 changed files with 14 additions and 13 deletions
|
@ -389,3 +389,5 @@ try:
|
||||||
COINBASE_YEARLY_PRICE = float(os.environ["COINBASE_YEARLY_PRICE"])
|
COINBASE_YEARLY_PRICE = float(os.environ["COINBASE_YEARLY_PRICE"])
|
||||||
except Exception:
|
except Exception:
|
||||||
COINBASE_YEARLY_PRICE = 30.00
|
COINBASE_YEARLY_PRICE = 30.00
|
||||||
|
|
||||||
|
REDDIT_URL = "https://www.reddit.com/r/Simplelogin/"
|
||||||
|
|
|
@ -37,6 +37,7 @@ from app.config import (
|
||||||
EMAIL_DOMAIN,
|
EMAIL_DOMAIN,
|
||||||
ALERT_DIRECTORY_DISABLED_ALIAS_CREATION,
|
ALERT_DIRECTORY_DISABLED_ALIAS_CREATION,
|
||||||
TRANSACTIONAL_BOUNCE_EMAIL,
|
TRANSACTIONAL_BOUNCE_EMAIL,
|
||||||
|
REDDIT_URL,
|
||||||
)
|
)
|
||||||
from app.dns_utils import get_mx_domains
|
from app.dns_utils import get_mx_domains
|
||||||
from app.extensions import db
|
from app.extensions import db
|
||||||
|
@ -85,8 +86,8 @@ def send_welcome_email(user):
|
||||||
send_email(
|
send_email(
|
||||||
to_email,
|
to_email,
|
||||||
f"Welcome to SimpleLogin",
|
f"Welcome to SimpleLogin",
|
||||||
render("com/welcome.txt", user=user, alias=alias),
|
render("com/welcome.txt", user=user, alias=alias, reddit_url=REDDIT_URL),
|
||||||
render("com/welcome.html", user=user, alias=alias),
|
render("com/welcome.html", user=user, alias=alias, reddit_url=REDDIT_URL),
|
||||||
unsubscribe_link,
|
unsubscribe_link,
|
||||||
via_email,
|
via_email,
|
||||||
)
|
)
|
||||||
|
|
|
@ -13,9 +13,9 @@
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|
||||||
{% call text() %}
|
{% call text() %}
|
||||||
This alias is automatically created for receiving SimpleLogin news and tips -
|
This alias is automatically created for receiving SimpleLogin news and tips. <br>
|
||||||
feel free to <a href="{{ URL + '/dashboard/setting#notification' }}">disable</a> it if you don't need any of
|
In the next coming days, we'll send you 3 emails to help you get the best out of SimpleLogin. <br>
|
||||||
these.
|
Please <a href="{{ URL + '/dashboard/setting#notification' }}">disable</a> it if you don't need this.
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
If you are using Firefox or a Chromium-browser like Chrome, Edge, Brave, you can
|
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>
|
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>
|
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 %}
|
{% endcall %}
|
||||||
|
|
||||||
{% call text() %}
|
{% call text() %}
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
SimpleLogin is also available on
|
SimpleLogin is also available on
|
||||||
<a href="https://play.google.com/store/apps/details?id=io.simplelogin.android">Android</a> and
|
<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>
|
<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 %}
|
{% endcall %}
|
||||||
|
|
||||||
{% if user.in_trial() and user.trial_end %}
|
{% if user.in_trial() and user.trial_end %}
|
||||||
|
@ -53,14 +53,12 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% call text() %}
|
{% call text() %}
|
||||||
At any time, you can reach out to us by: <br>
|
Feel free to join our Reddit to ask any question or to have updates about our latest features. <br>
|
||||||
<ul>
|
If you don't have a Reddit account, this is an occasion to create a new alias 😉.
|
||||||
<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>
|
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|
||||||
|
{{ render_button("Join SimpleLogin on Reddit", reddit_url) }}
|
||||||
|
|
||||||
{% call text() %}
|
{% call text() %}
|
||||||
SimpleLogin Team.
|
SimpleLogin Team.
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|
Loading…
Reference in a new issue