a small typo in #3007/r4058

2006-11-10 Thread Igor Goryachev
+msg['Message-ID'] = "<[EMAIL PROTECTED]>" % (time.time(), random_bits, DNS_NAME) BTW, I've tried to reopen #3007, but got the following message: Submission rejected as potential spam (Akismet says content is spam) -- Ig

sending mail in utf-8

2006-01-15 Thread Igor Goryachev
xt(message, 'plain', DEFAULT_EMAIL_CHARSET) +msg['Subject'] = str(Header(subject, DEFAULT_EMAIL_CHARSET)).replace('\n', '').replace('\r', '') msg['From'] = from_email msg['To'] = ', '.join(recipient_list) server.sendmail(from_email, recipient_list, msg.as_string()) = -- Igor Goryachev E-Mail/Jabber: [EMAIL PROTECTED]

Re: sending mail in utf-8

2006-01-16 Thread Igor Goryachev
Igor Goryachev <[EMAIL PROTECTED]> writes: > I think it would be very useful if it was possible to send e-mail (using > 'django.core.mail') in something different than 'us-ascii', for example, > in 'utf-8' by default. I have tried to implement this: