diff --git a/SoObjects/Mailer/SOGoDraftObject.m b/SoObjects/Mailer/SOGoDraftObject.m index 6c49c8fbcf..e0c53849de 100644 --- a/SoObjects/Mailer/SOGoDraftObject.m +++ b/SoObjects/Mailer/SOGoDraftObject.m @@ -28,6 +28,7 @@ #import #import #import +#import #import #import #import @@ -1270,11 +1271,12 @@ - (NGMimeBodyPart *) plainTextBodyPartForText map = [[[NGMutableHashMap alloc] initWithCapacity: 1] autorelease]; [map setObject: contentTypeValue forKey: @"content-type"]; + [map setObject: @"quoted-printable" forKey: @"content-transfer-encoding"]; /* prepare body content */ bodyPart = [[[NGMimeBodyPart alloc] initWithHeader:map] autorelease]; - plainText = [text htmlToText]; + plainText = [[text htmlToText] stringByEncodingQuotedPrintable]; [bodyPart setBody: plainText]; return bodyPart; @@ -1297,12 +1299,15 @@ This add the text typed by the user (the primary plain/text part). // TODO: set charset in header! if (text) - [map setObject: (isHTML ? htmlContentTypeValue : contentTypeValue) - forKey: @"content-type"]; + { + [map setObject: (isHTML ? htmlContentTypeValue : contentTypeValue) + forKey: @"content-type"]; + [map setObject: @"quoted-printable" forKey: @"content-transfer-encoding"]; + } /* prepare body content */ bodyPart = [[[NGMimeBodyPart alloc] initWithHeader:map] autorelease]; - [bodyPart setBody: text]; + [bodyPart setBody: [text stringByEncodingQuotedPrintable]]; return bodyPart; }