It sounds like you will need to encode those characters in something 
like UTF-8 or some other character set.

I'm not sure how you would go about doing that, but maybe the smtp 
object you create has a field or option specifying the character set 
with which to encode the email?

Louis

Julien wrote:
> Hi,
>
> We have a newsletter app which sends a bulk of a thousand emails every
> fortnight to our subscribers. Subscribers can choose to receive the
> newsletter in HTML of plain text format. The name of each subscriber
> is added at the top of the message (e.g. "Dear Mr. Smith, blabla").
>
> One of our subscriber has a name with special characters, 'č' and 'ć',
> and the sending always fails. I get the error:
>
> exceptions.UnicodeEncodeError - 'ascii' codec can't encode character
> u'\u010d' in position 171: ordi
>
> I'm using smtp.sendmail(). Is there any way to send an email including
> that sort of characters?
>
> Thanks a lot!
>
> Julien
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to