celery/celery — pull request #1069 by NotSqrt (2012-11-15 17:47:05+00:00)
Title: EmailError : use subject and body from constructor, not the default ones

Hello,

I am directly using Task.send_error_email in one of my projects, and noticed that it was impossible to change the subject or body, despite these lines from EmailError:

```
class ErrorMail(object):

subject = '....'
body = '....'

def __init__(self, task, **kwargs):
self.task = task
self.email_subject = kwargs.get('subject', self.subject)
self.email_body = kwargs.get('body', self.body)
```

and despite that send_email_error passes the kwargs to ErrorEmail

Hence, this pull request fixes the problem by modifying the faulty functions using ```self.body``` and ```self.subject``` instead of ```self.email_body``` and ```self.email_subject```

Thanks !