web.sendemail set Content-type header problem

17 views
Skip to first unread message

andrei

unread,
Jul 15, 2010, 4:31:24 AM7/15/10
to web.py
If I set "Content-type" header it simply appends it to default "text/
plain", resulting two "Content-type" headers in the same message.

eg
Content-Type: text/plain; charset="utf-8"
Content-Type: text/html; charset=UTF-8

And message is treated as text/plain, but i need it to be html.

andrei

unread,
Jul 15, 2010, 4:55:14 AM7/15/10
to web.py
Sending email with "Content-type: multipart/alternative" (with text
and html messages) is also impossible, since when I use attachments it
sets "Content-type: multipart/mixed" and my html message becomes
attachment.
Reply all
Reply to author
Forward
0 new messages