Friday, June 24, 2011

Re: Django won't send 500 or 404 emails, but django.core.mail.EmailMessage and django.utils.log.AdminEmailHandler work

On Saturday, June 25, 2011, Kyle Gong <kyle@kiwiinteractive.com> wrote:
> For some reason, I can't get my server to send 500 or 404 emails.  I
> am set up to send email through gmail, and it is working properly when
> I send error emails through a logger set up using
> django.utils.log.AdminEmailHandler, and also when I send mail using
> django.core.mail.EmailMessage.
>
> I have DEBUG = False and SEND_BROKEN_LINK_EMAILS = True.
>
> The server is a linode running Ubuntu 10.04, Django 1.3 and Python
> 2.6.5.
>
> Any idea where I could look to track down the problem?

My first guess, since you haven't mentioned that you've done this
step: have you configured your Linode to send mail? Unless you have a
mail server installed and configured, you won't be able to send mail.

apt-get install postfix

Should be all you need to do.

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


Real Estate