Re: not receiving error email

2007-02-01 Thread [EMAIL PROTECTED]

Like JRS, I'm on webfaction, and found them to be very particular
about what's in setttings.py. I'd double- or triple-check all that. If
it's not SERVER_EMAIL, then maybe it's something else. Like you, I had
account activation and other emails working fine, but error emails
weren't going through until I really looked hard at settings.py


On Feb 1, 7:56 am, James Tauber <[EMAIL PROTECTED]> wrote:
> In my dev environment, I was able to reproduce the error - it was a
> typo in a method on a model object being called from a view. With
> DEBUG = True, Django displayed a useful message so I suspect Django
> had a chance to send the email.
>
> Nothing in my postfix logs points to a problem.
>
> I've since turned on SEND_BROKEN_LINK_EMAILS and tried accessing a
> non-existent page but no email is received in that case either.
>
> And, yes, SERVER_EMAIL is set.
>
> Is there any way to have error emails sent even when DEBUG = True?
> That would enable me to see if the mail sending is throwing any
> exception.
>
> James
>
> On 31/01/2007, at 6:49 PM, James Bennett wrote:
>
>
>
> > On 1/31/07, James Tauber <[EMAIL PROTECTED]> wrote:
> >> I just got an unhandled exception error on my production site but
> >> didn't receive an email.
>
> > There are some cases where this will happen; for example, the code
> > which would send the email lives in the handler class, so if the
> > handler never gets fully instantiated before an exception pops up,
> > then Django has no chance to send an email or try to recover
> > gracefully. Generally, when this happens under mod_python you get a
> > blank white page with some pithy error messages from mod_python
> > itself, and under FastCGI you'll get errors out of flup instead of
> > Django.
>
> > Beyond that, I've seen plenty of weird interactions of spam filters
> > and other mail-oriented weirdness causes delays or even drop the
> > emails outright.


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: not receiving error email

2007-02-01 Thread James Tauber

In my dev environment, I was able to reproduce the error - it was a  
typo in a method on a model object being called from a view. With  
DEBUG = True, Django displayed a useful message so I suspect Django  
had a chance to send the email.

Nothing in my postfix logs points to a problem.

I've since turned on SEND_BROKEN_LINK_EMAILS and tried accessing a  
non-existent page but no email is received in that case either.

And, yes, SERVER_EMAIL is set.

Is there any way to have error emails sent even when DEBUG = True?  
That would enable me to see if the mail sending is throwing any  
exception.

James

On 31/01/2007, at 6:49 PM, James Bennett wrote:

>
> On 1/31/07, James Tauber <[EMAIL PROTECTED]> wrote:
>> I just got an unhandled exception error on my production site but
>> didn't receive an email.
>
> There are some cases where this will happen; for example, the code
> which would send the email lives in the handler class, so if the
> handler never gets fully instantiated before an exception pops up,
> then Django has no chance to send an email or try to recover
> gracefully. Generally, when this happens under mod_python you get a
> blank white page with some pithy error messages from mod_python
> itself, and under FastCGI you'll get errors out of flup instead of
> Django.
>
> Beyond that, I've seen plenty of weird interactions of spam filters
> and other mail-oriented weirdness causes delays or even drop the
> emails outright.


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: not receiving error email

2007-01-31 Thread jrs

Have you tried the SERVER_EMAIL setting in settings.py?  For me that
did the trick

SERVER_EMAIL = '[EMAIL PROTECTED]'

Without that it was sending the exception emails from
[EMAIL PROTECTED] which my shared provider (webfaction which I
highly recommend) did not like.

jrs

On Jan 31, 6:37 pm, James Tauber <[EMAIL PROTECTED]> wrote:
> I just got an unhandled exception error on my production site but
> didn't receive an email.
>
> I have ADMINS set and django in general has no problem emailing
> (account activation works fine).
>
> Is there something else I need to do to get error emails?
>
> Any other suggestions as to what to look for that would cause the
> error email to not be sent?
>
> James


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: not receiving error email

2007-01-31 Thread James Bennett

On 1/31/07, James Tauber <[EMAIL PROTECTED]> wrote:
> I just got an unhandled exception error on my production site but
> didn't receive an email.

There are some cases where this will happen; for example, the code
which would send the email lives in the handler class, so if the
handler never gets fully instantiated before an exception pops up,
then Django has no chance to send an email or try to recover
gracefully. Generally, when this happens under mod_python you get a
blank white page with some pithy error messages from mod_python
itself, and under FastCGI you'll get errors out of flup instead of
Django.

Beyond that, I've seen plenty of weird interactions of spam filters
and other mail-oriented weirdness causes delays or even drop the
emails outright.

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



not receiving error email

2007-01-31 Thread James Tauber

I just got an unhandled exception error on my production site but  
didn't receive an email.

I have ADMINS set and django in general has no problem emailing  
(account activation works fine).

Is there something else I need to do to get error emails?

Any other suggestions as to what to look for that would cause the  
error email to not be sent?

James

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---