I had some trouble with this and couldn't find any easy reference, so
here's the relevant portion of my production.ini with comments added:
[DEFAULT]
debug = false
# Any email address--whichever one you want to receive the error
report
# Question: can this be a list of addresses?
email_to =
y...@example.com
# Important: This must be an email address you've created in the
WebFaction control panel
error_email_from =
web.e...@example.com
# You might need to change this to
smtpN.webfaction.com (find N in the
WF control panel)
smtp_server =
smtp.webfaction.com
# Name of a WebFaction mailbox
smtp_username = username
# Mailbox password
smtp_password = password
smtp_use_tls = true
One thing that tripped me up was that I had `use =
config:development.ini` under [app:main] in my production.ini.
Apparently, this pulls the [DEFAULT] settings from development.ini
into [app:main] in production.ini, which seems to override the
[DEFAULT] settings section in production.ini. My workaround for this
was to remove all email settings from the [DEFAULT] section of
development.ini. It would probably also work to put the email settings
in [app:main] (but I didn't test that).
I also had some similar issues with the debug setting. I guess the
moral is: be careful with`use = config:settings.ini` directives. The
way settings are overridden might seem counter intuitive at first (but
I now think it makes sense after looking at it more closely).