Line Breaks

Susan Day suzieprogrammer at gmail.com
Mon Nov 23 20:46:23 CET 2009


On Mon, Nov 23, 2009 at 2:26 PM, Gary Herron <gherron at islandtraining.com>wrote:

> >>> print 'A Message From %s:\n\n %s' % ('someone','some message')
> A Message From someone:
>
> some message
>
>
> So...  *Exactly* what are you doing with msg, and *exactly* what is your
> evidence that line breaks are being ignored.  With that information, perhaps
> we can identify and solve the real problem you're having.
>

First, it does in fact ignore all line breaks, not just double line breaks.
Here's what I'm doing:
session.sendmail(clientEmail, ourEmail2, header+msg)
The email sent out has the message sans breaks.
TIA,
Suzie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091123/3104525a/attachment.html>


More information about the Python-list mailing list