My application generates html emails with tables used for reporting.
s = smtplib.SMTP(self.server)
s.sendmail(self.addrFrom(), self.addrTo(), message.getvalue())
When I check message.getvalue() before it gets sent, the html is valid. However, when I check the source when it gets sent to outlook it comes up as:
<TD>04/07/2011</TD><!
TD>30/04/2011</TD>
instead of:
<TD>04/07/2011</TD><TD>30/04/2011</TD>
anyone have any ideas on what’s happening?
This is not an Outlook (or any client for that matter) issue, rather servers conforming to RFCs.
You’ll have to right your own routine or import textwrap.
Refer to RFC 5321 for more detail:
RFC 2821 indicates the same.