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
parent
12b159a6c0
commit
96986812f4
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue