Re: Different E-mail Settings for Error Messages
On Wed, Oct 13, 2010 at 11:59 PM, Matt_313 <matt.covia@googlemail.com> wrote:
> Hi,
>
> I have a Django site that gets on average 6,000 visits a day. We use a
> white listed e-mail server to send out e-mails to our customers (order
> notifications, password resets etc.)
> This costs a fraction of a cent per e-mail - so all the details are in
> settings.py.
>
> Today, something happened that caused Django to send thousands of
> error messages to my email account.
> I love this feature, but today I ended up paying quite a lot for
> identical error messages.
>
> Is there any way at all to specify different e-mail server settings
> for error messages?
In 1.2 stable -- It's possible, but a little complex; you need to
define your own 500 error handler, duplicating the logic of the
default handler, but mailing using your preferred server.
In trunk -- yes. In trunk, 500 error emails are now handled as a log
handler, which makes it easier to write and install custom behavior.
Yours,
Russ Magee %-)
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home