Sending email in utf-8?
morphex
morphex at gmail.com
Mon Nov 7 11:39:25 EST 2005
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
UnicodeEncodeError: 'ascii' codec can't encode characters in position
263-264: ordinal not in range(128)
any suggestions on how I can approach this so that the email can be
sent without raising errors?
More information about the Python-list
mailing list