This commit is contained in:
Ludovic Marcotte
2014-12-19 09:01:39 -05:00
parent db911f323d
commit de3d38262b
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -1217,13 +1217,13 @@ static NSString *userAgent = nil;
if (!isHTML)
{
[map setObject: contentTypeValue forKey: @"content-type"];
[message setHeader: contentTypeValue forKey: @"content-type"];
body = text;
}
else
{
body = [[[NGMimeMultipartBody alloc] initWithPart: message] autorelease];
[map addObject: MultiAlternativeType forKey: @"content-type"];
[message setHeader: MultiAlternativeType forKey: @"content-type"];
// Get the text part from it and add it
[body addBodyPart: [self plainTextBodyPartForText]];