summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/email/MIMEMessage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/email/MIMEMessage.py b/Lib/email/MIMEMessage.py
index 8fa86cb..2042dd9 100644
--- a/Lib/email/MIMEMessage.py
+++ b/Lib/email/MIMEMessage.py
@@ -28,3 +28,5 @@ class MIMEMessage(MIMENonMultipart):
# It's convenient to use this base class method. We need to do it
# this way or we'll get an exception
Message.Message.attach(self, _msg)
+ # And be sure our default type is set correctly
+ self.set_default_type('message/rfc822')