Inject default mail sender/recips for machine-wide rattail.conf
also tweak timezone handling
This commit is contained in:
parent
375cd1a36f
commit
5fcfc91d83
2 changed files with 8 additions and 6 deletions
|
@ -20,8 +20,8 @@ configure_logging = true
|
|||
[rattail.mail]
|
||||
smtp.server = localhost
|
||||
templates = rattail:templates/mail
|
||||
default.from = root
|
||||
default.to = root
|
||||
default.from = ${getattr(env, 'email_default_sender', 'rattail@localhost')}
|
||||
default.to = ${', '.join(getattr(env, 'email_default_recipients', ['root@localhost']))}
|
||||
|
||||
|
||||
${'#'}#############################
|
||||
|
@ -88,7 +88,7 @@ formatter = console
|
|||
|
||||
[handler_email]
|
||||
class = handlers.SMTPHandler
|
||||
args = ('localhost', 'root', ['root'], "[Rattail] Logging")
|
||||
args = ('localhost', '${getattr(env, 'email_default_sender', 'rattail@localhost')}', ${getattr(env, 'email_default_recipients', ['root@localhost'])}, "[Rattail] Logging")
|
||||
formatter = generic
|
||||
level = ERROR
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue