From b24b56c14266e1787f16c0ff6f15f4f725043c74 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 31 Oct 2019 19:00:37 +0000 Subject: [PATCH] people: Invite newly registered users to newsletter Signed-off-by: Michael Tremer --- src/backend/accounts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/accounts.py b/src/backend/accounts.py index 921d38cf..a9697e46 100644 --- a/src/backend/accounts.py +++ b/src/backend/accounts.py @@ -245,6 +245,10 @@ class Accounts(Object): first_name=res.first_name, last_name=res.last_name, country_code=res.country_code) + # Invite newly registered users to newsletter + self.backend.messages.send_template( + "newsletter/subscribe", address=account.email) + # Send email about account registration self.backend.messages.send_template("people/messages/new-account", recipients=["moderators@ipfire.org"], account=account) -- 2.39.2