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
Post a Comment