I\'m generating some inline images for an email sent from the iPad. Looks great in all desktop email clients, but gmail doesn\'t seem to like the base64 image and it shows u
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
[picker addAttachmentData:UIImageJPEGRepresentation(_tempImage,1) mimeType:mimeType fileName:filename];
[picker setMessageBody:emailBody isHTML:YES];
If isHTML is YES, addAttachmentData will auto change to base64 string, in email html can see you img.
If isHTML is NO, addAttachmentData is attachment.