email - Python's smtplib sendmail is inserting line feed -


i using smtplib sendmail , \n (line feed) being added there \r (carriage return).

this corrupts file use unix tnef utility. how can keep line feed being added?

thanks

email servers free change line endings iirc. various platforms.

if transmitting attachment, use suitable encoding such base64.


Comments

Popular posts from this blog

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -

How do I get the nth item in a queue in java? -

How to read input from STDIN in x86_64 assembly? -