REPOST: Re: long lines in HTML attachments
Iddo
idoerg at cc.huji.ac.il
Sat Dec 29 07:39:44 EST 2001
More information about the Python-list mailing list
Sat Dec 29 07:39:44 EST 2001
- Previous message (by thread): long lines in HTML attachments
- Next message (by thread): REPOST: Literally thousands of Pythonic online articles
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Gillou" <nospam at bigfoot.com> wrote in message news:<a0fhji$2ngg$1 at norfair.nerim.net>... > Encode your mail body with quoted printable encoding (see doc of module > "quopri"). This way, the recipient's mail client is supposed to re-built the > lines broken by quoted-printable encodings. > I tested this successfully with OE5, Netscape messenger and StarOffice Mail. > Thanks Gilles. Using quopri did the trick :-) Iddo > Don't forget to add this header to your mail: > > "Content-Transfer-Encoding: quoted-printable" > > Or download Python 2.2 that has a new "email" standard package that handles > email messages (parse and marshal/serialize) as Python objects (easier to > handle than playing with the various packages you may need for handling > emails). > Heard that this package is available separately and may work with older > Python versions but I have no URL for this (Google for this). > > HTH > > --Gilles > > "Iddo" <idoerg at cc.huji.ac.il> a écrit dans le message news: > 7a256ac1.0112270203.77efb6f2 at posting.google.com... > > Hi, > > > > I am trying to use smtplib and mimecntl to email an attached html > > document. The trouble is that the html document contains some very > > long physical lines (500 chars). It is important that those lines be > > preserved as such, since I use <pre> formatting in the htdoc. Some > > mail clients (e.g. Pine 4.40) truncate or insert a linefeed in those > > lines, creating a mess. Any way of attaching my long-lined files and > > getting them through intact? Following is a code snippet of what I do. > > Any help would be appreciated. > > > > Thanks, > > > > Iddo > ========= WAS CANCELLED BY =======: Path: news.sol.net!spool0-nwblwi.newsops.execpc.com!newsfeeds.sol.net!news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r From: idoerg at cc.huji.ac.il (Iddo) Newsgroups: comp.lang.python Subject: cmsg cancel <7a256ac1.0112290439.677e909 at posting.google.com> Control: cancel <7a256ac1.0112290439.677e909 at posting.google.com> Date: Mon, 31 Dec 2001 04:19:09 GMT Organization: A poorly-installed InterNetNews site Lines: 2 Message-ID: <cancel.7a256ac1.0112290439.677e909 at posting.google.com> NNTP-Posting-Host: 211.57.49.2 X-Trace: news2.kornet.net 1009774784 27193 211.57.49.2 (31 Dec 2001 04:59:44 GMT) X-Complaints-To: usenet at news2.kornet.net NNTP-Posting-Date: Mon, 31 Dec 2001 04:59:44 +0000 (UTC) X-No-Archive: yes X-Unac4ncel: yes X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999) This message was cancelled from within Mozilla.
- Previous message (by thread): long lines in HTML attachments
- Next message (by thread): REPOST: Literally thousands of Pythonic online articles
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list