oc-mail: Set content type for a message after upgrading sope 2.2.15

Now that message headers can be set dynamically, we can
set the body-related headers using `setHeader` selector.

This fixes emails sent using this sope version are all in plain text.
pull/65/merge^2
Enrique J. Hernández Blasco 2015-02-07 00:22:45 +01:00
parent 12b159a6c0
commit 96986812f4
1 changed files with 1 additions and 1 deletions

View File

@ -900,7 +900,7 @@ MakeMessageBody (NSDictionary *mailProperties, NSDictionary *attachmentParts, NS
messageBody = MakeMessageBody (properties, attachmentParts, &contentType);
if (messageBody)
{
[headers setObject: contentType forKey: @"content-type"];
[message setHeader: contentType forKey: @"content-type"];
[message setBody: messageBody];
}