Hi, this is code for mail send: def save(self, *args, **kwargs): """Email when a comment is added.""" if "notify" in kwargs and kwargs["notify"] == True: message = "Comment was was added to '%s' by '%s': \n\n%s" % (self.post, self.author, self.body) from_addr = "m...@pippo.it" recipient_list = ["m...@pippo.it"] send_mail("New comment added", message, from_addr, recipient_list) if "notify" in kwargs: del kwargs["notify"] super(Comment, self).save(*args, **kwargs)
On 4 Mag, 15:30, Xavier Ordoquy <xordo...@linovia.com> wrote: > Hi, > > Have you tried the development server (runserver) on the computer that runs > the wsgy ? > What LANG does apache declares (/etc/apache/envvars) ? > How much of the body do you change in the save function ? > > Xavier. > > Le 4 mai 2011 à 15:16, Massimo a écrit : > > > > > > > > > Yes, I get an email when someone writes a > > comment. (Sorry but I do not speak English). If I run with "python > > manage.py runserver" the email arrives well, if run with apache wsgy the > > result is the error ! > > > 2011/5/4 Xavier Ordoquy <xordo...@linovia.com> > > > Le 4 mai 2011 à 13:44, Aragorn a écrit : > > > > HI, > > > > I can not understand where is the error. when you insert a > > > blog comment I receive an email, but this' > > > the email I receive ! > > > Hi, > > > I noticed you have overridden the save method. Could you tell us more about > > what you are doing the that method ? > > I suspect you try to send a mail telling you you have a new comment, don't > > you ? > > > Regards, > > Xavier. > > > -- > > 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+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/django-users?hl=en. > > > -- > > 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+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/django-users?hl=en. -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.