Re: Sending email in utf-8?

2005-11-09 Thread morphex
By turning everything into unicode objects (unicode(string)) and then running body.encode('utf-8') and using quoted printable, it works. Thanks for all the help, it's really appreciated! -- http://mail.python.org/mailman/listinfo/python-list

Re: Sending email in utf-8?

2005-11-08 Thread Max M
morphex wrote: That works, kinda. I get strange characters now like this Date: Mon, 7 Nov 2005 11:38:29 -0700 (MST) Message-Id: [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: Order confirmation Content-Type: text/plain; charset=utf-8

Re: Sending email in utf-8?

2005-11-08 Thread Fredrik Lundh
morphex [EMAIL PROTECTED] wrote: Date: Mon, 7 Nov 2005 11:38:29 -0700 (MST) Message-Id: [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: Order confirmation Content-Type: text/plain; charset=utf-8 X-Bogosity: No, tests=bogofilter,

Sending email in utf-8?

2005-11-07 Thread morphex
Hi, I have an email that's in the utf-8 encoding, and I'm getting this error message when I try to send it using smtplib: * Module smtplib, line 688, in sendmail * Module smtplib, line 485, in data * Module smtplib, line 312, in send * Module socket, line 1, in sendall

Re: Sending email in utf-8?

2005-11-07 Thread Fredrik Lundh
morphex [EMAIL PROTECTED] wrote: I have an email that's in the utf-8 encoding, and I'm getting this error message when I try to send it using smtplib: * Module smtplib, line 688, in sendmail * Module smtplib, line 485, in data * Module smtplib, line 312, in send * Module

Re: Sending email in utf-8?

2005-11-07 Thread morphex
That works, kinda. I get strange characters now like this Date: Mon, 7 Nov 2005 11:38:29 -0700 (MST) Message-Id: [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: Order confirmation Content-Type: text/plain; charset=utf-8 X-Bogosity: No,