From: Michael Tremer Date: Thu, 31 Oct 2019 19:00:37 +0000 (+0000) Subject: people: Invite newly registered users to newsletter X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b24b56c14266e1787f16c0ff6f15f4f725043c74;p=ipfire.org.git people: Invite newly registered users to newsletter Signed-off-by: Michael Tremer --- 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)