Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
if account.country_code and not account.country_code in countries.EU_COUNTRIES:
account.consents_to_promotional_emails = True
- # Invite newly registered users to newsletter
- self.backend.messages.send_template(
- "newsletter/subscribe", address="%s <%s>" % (account, account.email))
-
# Send email about account registration
self.backend.messages.send_template("people/messages/new-account",
recipients=["moderators@ipfire.org"], account=account)