diff options
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 288bd50e59..3a2decae4a 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -154,10 +154,8 @@ build_message (EMsgComposer *composer) body_part = camel_mime_body_part_new (); text = get_editor_text (BONOBO_WIDGET (composer->editor)); - /* set text sets text/plain */ - camel_mime_part_set_text((CamelMimePart *)body_part, text); - camel_data_wrapper_set_mime_type (CAMEL_DATA_WRAPPER (camel_medium_get_content_object((CamelMedium *)body_part)), - "text/html"); + camel_mime_part_set_content (CAMEL_MIME_PART (body_part), text, + strlen (text), "text/html"); g_free (text); camel_multipart_add_part (multipart, body_part); |