ios - Attaching but not embedding image in email using MFMailComposeViewController -


i need send email image attached , not in body of email.

this abbreviated version of doing. tried setting ishtml no. no matter try, image gets embedded in email, , client wants attachment.

mfmailcomposeviewcontroller *mailcomposecontroller = [[mfmailcomposeviewcontroller alloc] init]; [mailcomposecontroller setsubject:subject]; [mailcomposecontroller setmessagebody:@"" ishtml:no];  [mailcomposecontroller addattachmentdata:image mimetype:@"image/png" filename:filename]; [self presentviewcontroller:mailcomposecontroller animated:yes completion:nil]; 

is there different way this, or depend on mail client received in?


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -