ios - MFMailComposeViewController treats html attachment as image on iOS7 -


when i'm adding html file mfmailcomposeviewcontroller instance attachment final email generated attachment embedded image on ios7, worked fine on previous versions (ios4, 5, 6).

[mailcontroller addattachmentdata: filedata mimetype: @"text/html; charset=utf-8" filename:@"file.html"]; 

final .eml content

<div><br><br> <img src="cid:c7bff544-754d-4322-a71c-12345667789" id="c7bff544-754d-4322-a71c-12345667789"></div></body></html>  content-type: text/html; charset=utf-8; name=file.html content-disposition: attachment; filename=file.html content-transfer-encoding: quoted-printable content-id: <c7bff544-754d-4322-a71c-12345667789> 

when opened in gmail attachment displayed 'not found' image. looks native mail client treats document embedded image it's not.

i've tried use different content-type combinations (application/pdf, charset-8/16) , doesn't works. changing filename extension example '.shtml' resolves issue. changing filename inapplicable me.

any thoughts?

note: application built ios 6 sdk , xcode 4.

do have signature being added email, "sent iphone" etc.? remove , resend email , attachment , see if attachment appears.

there seems problem apple main , outlook outlook strip out attachments if there text added after attachment has been added.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -