how to send a "Multiline" mail with smtplib?

Lie Lie.1296 at gmail.com
Thu Jun 19 12:12:25 CEST 2008


On Jun 19, 4:02 pm, Justin Ezequiel <justin.mailingli... at gmail.com>
wrote:
> perhaps change html
>
> body=MIMEText('hello,\r\n
> ok',_subtype='html',_charset='windows-1255')
>
> to plain
>
> body=MIMEText('hello,\r\n
> ok',_subtype='plain',_charset='windows-1255')

If that was the case, and you needed a line break in html-mode, use
<br /> or <p> tags.



More information about the Python-list mailing list