[Tutor] SMTPLIB module - how to add subject ?
Barry A. Warsaw
barry at zope.com
Sun Sep 16 11:57:24 EDT 2001
>>>>> "RA" == Robert Amesz <reqhye72zux at mailexpire.com> writes:
>> On Sat, 15 Sep 2001 22:45:18 +0200, "A" <printers at sendme.cz>
>> wrote about [Tutor] SMTPLIB module - how to add subject ?: I've
>> pasted the example below. Actually, I really dislike this
>> example. They are using "\r\n" as a character for
>> newlines. Whose idea was that??? It should be just "\n"
RA> Not so: the RFC's specify CR/LF pairs as line separators. The
RA> downside is that you must make sure that under Windows or
RA> MacOS the line-endings aren't translated somewhere along the
RA> way.
Except that smtplib Does The Right Thing w.r.t. line endings when
talking to an smtpd, so you don't need to worry about line endings
when handing things to smtplib. That's as it should be.
Just compose messages with native line endings, or even just \n and
you should be fine.
-Barry
More information about the Python-list
mailing list