Code

better construction of plain text
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 10 Aug 2009 03:33:28 +0000 (03:33 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 10 Aug 2009 03:33:28 +0000 (03:33 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4341 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/mailer.py

index f0981aa37a6653ee03707386765ffaab92c70b58..171ec1133c8ebc12fc5a7a8bb5f99da64433241d 100644 (file)
@@ -69,8 +69,7 @@ class Mailer:
         if multipart:
             message = MIMEMultipart()
         else:
-            message = Message()
-            message.set_type('text/plain')
+            message = MIMEText("")
             message.set_charset(charset)
 
         try:
@@ -98,8 +97,6 @@ class Mailer:
         # finally, an aid to debugging problems
         message['X-Roundup-Version'] = __version__
 
-        message['MIME-Version'] = '1.0'
-
         return message
 
     def standard_message(self, to, subject, content, author=None):