From 83c40fb92230c6c8d6977ad5fc05eb7ac5faba6b Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 10 Nov 2006 17:42:47 +0000 Subject: [PATCH] Fixed bug in [4058], in django/core/mail.py. Thanks, Igor Goryachev git-svn-id: http://code.djangoproject.com/svn/django/trunk@4065 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/mail.py b/django/core/mail.py index 1b7817b530..a5af6e610f 100644 --- a/django/core/mail.py +++ b/django/core/mail.py @@ -59,7 +59,7 @@ def send_mass_mail(datatuple, fail_silently=False, auth_user=settings.EMAIL_HOST random_bits = str(random.getrandbits(64)) except AttributeError: # Python 2.3 doesn't have random.getrandbits(). random_bits = ''.join([random.choice('1234567890') for i in range(19)]) - msg['Message-ID'] = "<%d.%d@%s>" % (time.time(), random_bits, DNS_NAME) + msg['Message-ID'] = "<%d.%s@%s>" % (time.time(), random_bits, DNS_NAME) try: server.sendmail(from_email, recipient_list, msg.as_string()) num_sent += 1