Prepare newsletter
This commit is contained in:
parent
aeed62e95b
commit
e2b086c449
15
shell.py
15
shell.py
|
@ -40,6 +40,21 @@ def send_safari_extension_newsletter():
|
|||
)
|
||||
|
||||
|
||||
def send_mailbox_newsletter():
|
||||
for user in User.query.all():
|
||||
if user.notification and user.activated:
|
||||
try:
|
||||
LOG.d("Send newsletter to %s", user)
|
||||
send_email(
|
||||
user.email,
|
||||
"Introducing Mailbox - our most requested feature",
|
||||
render("com/newsletter/mailbox.txt", user=user),
|
||||
render("com/newsletter/mailbox.html", user=user),
|
||||
)
|
||||
except Exception:
|
||||
LOG.warning("Cannot send to user %s", user)
|
||||
|
||||
|
||||
app = create_app()
|
||||
|
||||
with app.app_context():
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{{ render_text("Hi " + user.name) }}
|
||||
{{ render_text("Our most requested feature is finally ready: you can now add several <b>real</b> email addresses into SimpleLogin
|
||||
and choose which one to use when creating aliases!") }}
|
||||
|
||||
{{ render_text("A real email address is called <b>mailbox</b> in SimpleLogin.") }}
|
||||
|
||||
{{ render_text('This feature is particularly useful if you have several email addresses,
|
||||
maybe for different uses: a Gmail account for social networks & forums, a Prontonmail account for professional emails, etc.') }}
|
||||
|
||||
<img src="https://simplelogin.io/blog/mailbox-gmail.png" alt="Mailbox Gmail">
|
||||
<img src="https://simplelogin.io/blog/mailbox-protonmail.png" alt="Mailbox Protonmail">
|
||||
|
||||
|
||||
{{ render_text("When creating an alias, you can choose which mailbox that <b>owns</b> this alias, meaning:") }}
|
||||
|
||||
{{ render_text("1. Emails sent to this alias are *forwarded* to the owning mailbox.") }}
|
||||
|
||||
{{ render_text("2. The owning mailbox can *send* or reply emails from this alias.") }}
|
||||
|
||||
{{ render_text("You can also change the owning mailbox for an existing alias.") }}
|
||||
|
||||
{{ render_text('The mailbox doesn\'t have to be your personal email: you can also create aliases for your friend by adding his/her email as a mailbox.') }}
|
||||
|
||||
{{ render_text('Thanks, <br />SimpleLogin Team.') }}
|
||||
{{ render_text('<strong>P.S.</strong> Need immediate help getting started? Just reply to this email, the SimpleLogin support team is always ready to help!.') }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block footer %}
|
||||
This email is sent to {{ user.email }} and is part of our onboarding series. Unsubscribe on
|
||||
<a href="https://app.simplelogin.io/dashboard/setting#notification">Settings</a>
|
||||
{% endblock %}
|
|
@ -0,0 +1,28 @@
|
|||
This email is sent to {{ user.email }} and is part of our onboarding series.
|
||||
Unsubscribe from our emails on https://app.simplelogin.io/dashboard/setting#notification
|
||||
----------------
|
||||
|
||||
Hi {{user.name}}
|
||||
|
||||
Our most requested feature is finally ready: you can now add several *real* email addresses into SimpleLogin
|
||||
and choose which one to use when creating aliases!
|
||||
|
||||
A real email address is called *mailbox* in SimpleLogin.
|
||||
|
||||
This feature is particularly useful if you have several email addresses,
|
||||
maybe for different uses: a Gmail account for social networks & forums, a Prontonmail account for professional emails, etc.
|
||||
|
||||
When creating an alias, you can choose which mailbox that *owns* this alias, meaning:
|
||||
|
||||
- emails sent to this alias are *forwarded* to the owning mailbox.
|
||||
|
||||
- the owning mailbox can *send* or reply emails from this alias.
|
||||
|
||||
You can also change the owning mailbox for an existing alias.
|
||||
|
||||
The mailbox doesn't have to be your personal email: you can also create aliases for your friend by adding his/her email as a mailbox.
|
||||
|
||||
As usual, let us know if you have any question by replying to this email.
|
||||
|
||||
Best regards,
|
||||
SimpleLogin team.
|
Loading…
Reference in New Issue