Manlio Perillo <[EMAIL PROTECTED]> wrote:
>
>The problem is this code:
>
> >>> import email.Message
> >>> msg = email.Message.Message()
> >>> msg["subject"] = "email bug"
> >>> msg["from"] = "Manlio Perillo"
> >>> print repr(msg.as_string())
>'subject: email bug\nfrom: Manlio Perillo\n\n'
>
>Why li
Regards.
The problem is this code:
>>> import email.Message
>>> msg = email.Message.Message()
>>> msg["subject"] = "email bug"
>>> msg["from"] = "Manlio Perillo"
>>> print repr(msg.as_string())
'subject: email bug\nfrom: Manlio Perillo\n\n'
Why line ending is '\n' and not '\r\n' ?
RFC 2822