diff --git a/shell.py b/shell.py
index e594a133..4d7faaaf 100644
--- a/shell.py
+++ b/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():
diff --git a/templates/emails/com/newsletter/mailbox.html b/templates/emails/com/newsletter/mailbox.html
new file mode 100644
index 00000000..a1e5a12e
--- /dev/null
+++ b/templates/emails/com/newsletter/mailbox.html
@@ -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 real email addresses into SimpleLogin
+and choose which one to use when creating aliases!") }}
+
+ {{ render_text("A real email address is called mailbox 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.') }}
+
+
+
+
+
+ {{ render_text("When creating an alias, you can choose which mailbox that owns 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,
SimpleLogin Team.') }}
+ {{ render_text('P.S. 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
+ Settings
+{% endblock %}
diff --git a/templates/emails/com/newsletter/mailbox.txt b/templates/emails/com/newsletter/mailbox.txt
new file mode 100644
index 00000000..b9871308
--- /dev/null
+++ b/templates/emails/com/newsletter/mailbox.txt
@@ -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.
\ No newline at end of file