X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/6b2d761f28d548e2ebd4d29c0c57fd63c3ba058e..80839825a00cc5dbbdd386e2b617df88bb47977e:/redakcja/utils.py?ds=inline diff --git a/redakcja/utils.py b/redakcja/utils.py new file mode 100644 index 00000000..806d106e --- /dev/null +++ b/redakcja/utils.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# +# This file is part of MIL/PEER, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# +from constance import config +from django.core.mail import send_mail + + +def send_notify_email(subject, content): + addresses = [part.strip() for part in config.NOTIFY_EMAIL.split(';') if '@' in part] + send_mail(subject, content, 'milpeer@mdrn.pl', addresses)