Added initial support for attachments, not yet splitting the base64 lines into 76 chars max per line. Added RFC 2047 encoding of the Subject header. Made the body optional. Updated writeHeader() to use textproto.MIMEHeader.