mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
mobile-darkmode newsletter
This commit is contained in:
parent
36a8e311ea
commit
37271d10ed
3 changed files with 201 additions and 0 deletions
22
shell.py
22
shell.py
|
@ -73,6 +73,28 @@ def send_pgp_newsletter():
|
|||
LOG.warning("Cannot send to user %s", user)
|
||||
|
||||
|
||||
def send_mobile_newsletter():
|
||||
count = 0
|
||||
for user in User.query.order_by(User.id).all():
|
||||
if user.notification and user.activated:
|
||||
count += 1
|
||||
try:
|
||||
LOG.d("#%s: send to %s", count, user)
|
||||
send_email(
|
||||
user.email,
|
||||
"Mobile and Dark Mode",
|
||||
render("com/newsletter/mobile-darkmode.txt", user=user),
|
||||
render("com/newsletter/mobile-darkmode.html", user=user),
|
||||
)
|
||||
except Exception:
|
||||
LOG.warning("Cannot send to user %s", user)
|
||||
|
||||
if count % 5 == 0:
|
||||
# sleep every 5 sends to avoid hitting email limits
|
||||
LOG.d("Sleep 1s")
|
||||
sleep(1)
|
||||
|
||||
|
||||
app = create_app()
|
||||
|
||||
with app.app_context():
|
||||
|
|
108
templates/emails/com/newsletter/mobile-darkmode.html
Normal file
108
templates/emails/com/newsletter/mobile-darkmode.html
Normal file
|
@ -0,0 +1,108 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{{ render_text("Hi " + user.name) }}
|
||||
|
||||
{% call text() %}
|
||||
Son from SimpleLogin here. I hope you are doing well and are staying at home in this difficult time. By the way I'm writing this newsletter from my couch with my cats proofreading the text :). <br>
|
||||
Please find below some of our latest news. <br>
|
||||
|
||||
{% endcall %}
|
||||
|
||||
{% call text() %}
|
||||
1) <b>Mobile apps</b> <br><br>
|
||||
|
||||
<img src="https://simplelogin.io/blog/devices.png" style="max-width: 100%"> <br><br>
|
||||
|
||||
Now you can quickly create aliases on-the-go with SimpleLogin Android and iOS app,
|
||||
thanks to our mobile guy Thanh-Nhon! <br>
|
||||
|
||||
Download the Android app on
|
||||
<a href="https://play.google.com/store/apps/details?id=io.simplelogin.android">Play Store</a> and the iOS app on
|
||||
<a href="https://apps.apple.com/us/app/simplelogin-anti-spam/id1494359858">App Store</a>. <br>
|
||||
|
||||
With the release of the mobile apps, SimpleLogin now covers most major platforms: <br>
|
||||
|
||||
- Desktop with SimpleLogin web app or Chrome, Firefox and Safari extension <br>
|
||||
- Mobile with Android and iOS app <br>
|
||||
|
||||
The code is of course open-source and available on our <a href="http://github.com/simple-login/">Github</a>
|
||||
|
||||
{% endcall %}
|
||||
|
||||
{% call text() %}
|
||||
2) <b>Dark mode</b> <br><br>
|
||||
|
||||
<img src="https://simplelogin.io/blog/dark-mode.gif" style="width: 100%"> <br><br>
|
||||
|
||||
You have asked for it and now the dark mode is finally available, kudos to Dung - our full-stack guy. <br>
|
||||
You can finally enjoy using SimpleLogin in the dark.
|
||||
{% endcall %}
|
||||
|
||||
{% call text() %}
|
||||
3) <b>Alias name, new UI, security page, new policy privacy</b> <br><br>
|
||||
|
||||
<img src="https://simplelogin.io/blog/new-ui.gif" style="width: 100%"> <br><br>
|
||||
|
||||
You might have noticed that the web UI is now more compact: the web app has undergone a remake
|
||||
to make it more responsive for usual actions like enabling/disabling an alias, updating alias note, etc. <br>
|
||||
|
||||
You can set a name for your alias too: this name is used when you send emails or reply from your alias.<br>
|
||||
|
||||
We have also created a new <a href="https://simplelogin.io/security/">security page</a> that goes into the technical details of SimpleLogin.
|
||||
Our <a href="https://simplelogin.io/privacy/">privacy page</a> is also rewritten from scratch: nothing changes about your data protection
|
||||
but the page is more clear and detailed now.
|
||||
|
||||
{% endcall %}
|
||||
|
||||
{% call text() %}
|
||||
4) <b>Facebook, Google, Github login deprecation</b> <br>
|
||||
We have decided to deprecate those social login options because of several reasons: <br>
|
||||
|
||||
- Privacy: every time you sign in using one of these methods, the respective company knows and
|
||||
we have no information on what they do with this data. <br>
|
||||
- Not fully open-standard compatible: these platforms enjoy their monopolies and
|
||||
don't play well with open standards like OAuth2/OpenID: in fact, implementations on mobile of these social login
|
||||
require their SDK that we refuse to add because of privacy concern. <br>
|
||||
- Uniform experiences for all users: to have these social login in our iOS app, we need to support "Sign in with
|
||||
Apple" that isn't broadly available for Android users.
|
||||
Again, another big tech enjoying its monopoly. <br>
|
||||
|
||||
If you happen to use one of these social login options, please create a password for your account on the
|
||||
<a href="https://app.simplelogin.io/dashboard/setting">Setting page</a> <br>
|
||||
|
||||
You can still sign in using these social login until 2020-05-31. After this date, they will be removed.
|
||||
{% endcall %}
|
||||
|
||||
{% call text() %}
|
||||
5) <b>WebAuthn (Beta)</b> <br>
|
||||
|
||||
Thanks to Raymond, a user of SimpleLogin, the WebAuthn is now available in Beta.
|
||||
Please reply to this email if you want to try this out.
|
||||
|
||||
{% endcall %}
|
||||
|
||||
{% call text() %}
|
||||
We want to say thank you to all users who have helped to improve SimpleLogin code and even
|
||||
contribute important features.
|
||||
That means a lot to us as SimpleLogin is after all an open-source project.
|
||||
|
||||
{% endcall %}
|
||||
|
||||
{% call text() %}
|
||||
We always welcome your feedback. Get in touch on our <a href="https://twitter.com/simple_login">Twitter</a>,
|
||||
<a href="https://www.reddit.com/r/Simplelogin/">Reddit</a>, where you can also follow all our latest updates.
|
||||
<br>
|
||||
{% endcall %}
|
||||
|
||||
{% call text() %}
|
||||
Best, <br>
|
||||
Son.
|
||||
{% endcall %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block footer %}
|
||||
This email is sent to {{ user.email }}. Unsubscribe on
|
||||
<a href="https://app.simplelogin.io/dashboard/setting#notification">Settings</a>
|
||||
{% endblock %}
|
71
templates/emails/com/newsletter/mobile-darkmode.txt
Normal file
71
templates/emails/com/newsletter/mobile-darkmode.txt
Normal file
|
@ -0,0 +1,71 @@
|
|||
This email is sent to {{ user.email }}.
|
||||
Unsubscribe from our emails on https://app.simplelogin.io/dashboard/setting#notification
|
||||
----------------
|
||||
|
||||
Hi {{user.name}}
|
||||
|
||||
Son from SimpleLogin here. I hope you are doing well and are staying at home in this difficult time.
|
||||
By the way I'm writing this newsletter from my couch with my cats proofreading the text :).
|
||||
|
||||
Here are some of our latest news:
|
||||
|
||||
1) Mobile apps
|
||||
|
||||
Now you can quickly create aliases on-the-go with SimpleLogin Android and iOS app, thanks to our mobile guy Thanh-Nhon!
|
||||
Download:
|
||||
- the Android app on Play Store https://play.google.com/store/apps/details?id=io.simplelogin.android
|
||||
- the iOS app on App Store https://apps.apple.com/us/app/simplelogin-anti-spam/id1494359858
|
||||
|
||||
With the release of the mobile apps, SimpleLogin now covers most major platforms:
|
||||
|
||||
- Desktop with SimpleLogin web app or Chrome, Firefox and Safari extension
|
||||
- Mobile with Android and iOS app
|
||||
|
||||
The apps code is of course open-source and available on our Github http://github.com/simple-login/
|
||||
|
||||
2) Dark mode
|
||||
|
||||
No worries, we are not going to the dark side :).
|
||||
You have asked for it and now the dark mode is finally available, thanks to Dung - our full-stack guy.
|
||||
You can finally enjoy using SimpleLogin in the dark.
|
||||
|
||||
3) Alias name, new UI, security page, new policy privacy
|
||||
|
||||
You might have noticed that the web UI is now more compact: the web app has undergone a remake
|
||||
to make it more responsive for usual actions like enabling/disabling an alias, updating alias note, etc.
|
||||
|
||||
You can set a name for your alias: this name is used when you send emails or reply from your alias.
|
||||
|
||||
We have also created a new security page that goes into the technical details of SimpleLogin.
|
||||
Our privacy page is also rewritten from scratch: nothing changes about your data protection
|
||||
but the page is now much more clear and detailed now.
|
||||
|
||||
4) Facebook, Google, Github login deprecation
|
||||
|
||||
We have decided to deprecate those social login options because of several reasons:
|
||||
|
||||
- Privacy: every time you sign in using one of these methods, the respective company knows and
|
||||
we have no information on what they do with this data.
|
||||
- Not fully open-standard compatible: these platforms enjoy their monopolies and
|
||||
don't play well with open standards like OAuth2/OpenID: in fact, implementations on mobile of these social login
|
||||
require their SDK that we refuse to add because of privacy concern.
|
||||
- Uniform experiences for all users: to have these social login in our iOS app, we need to support "Sign in with Apple"
|
||||
that isn't broadly available for Android users. Again, another big tech enjoying its monopoly.
|
||||
|
||||
If you happen to use one of these social login options, please create a password for your account on the Setting page
|
||||
https://app.simplelogin.io/dashboard/setting
|
||||
|
||||
You can still sign in using these social login until 2020-05-31. After this date, they will be removed.
|
||||
|
||||
5) WebAuthn (Beta)
|
||||
|
||||
Thanks to one of SimpleLogin users, the WebAuthn is now available in Beta.
|
||||
Please reply to this email if you want to try this out.
|
||||
|
||||
We want to say thank you to all users who have helped to improve SimpleLogin code and even contribute important features.
|
||||
That means a lot to us as SimpleLogin is after all an open-source project.
|
||||
|
||||
We always welcome your feedback. Get in touch on social media, where you can also follow all our latest updates.
|
||||
|
||||
Best regards,
|
||||
Son.
|
Loading…
Reference in a new issue