1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-11-04 20:38:12 +00:00

Mailer always enabled

This commit is contained in:
Lauri Võsandi 2017-05-07 20:49:58 +00:00
parent f4d660d5eb
commit a4a31ca2c6

View File

@ -14,9 +14,6 @@ env = Environment(loader=PackageLoader("certidude", "templates/mail"))
def send(template, to=None, include_admins=True, attachments=(), **context): def send(template, to=None, include_admins=True, attachments=(), **context):
from certidude import authority, config from certidude import authority, config
if not config.MAILER_ADDRESS:
# Mailbox disabled, don't send e-mail
return
recipients = () recipients = ()
if include_admins: if include_admins: