Fixed bozo error in [5141].

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5142 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-05-03 11:50:43 +00:00
parent 95d7cb27d0
commit befbd82d85
1 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,7 @@ class SMTPConnection(object):
return False
try:
self.connection.sendmail(email_message.from_email,
email_message.to, email_message.message.as_string()())
email_message.to, email_message.message().as_string())
except:
if not self.fail_silently:
raise
@ -165,6 +165,7 @@ class EmailMessage(object):
msg['To'] = ', '.join(self.to)
msg['Date'] = formatdate()
msg['Message-ID'] = make_msgid()
return msg
def send(self, fail_silently=False):
"""Send the email message."""