Hello all, I am using inbuilt composer of iPhone to send an email in my application. I want to add images to body of my email. Please remember I want to place images in the body and not want to attach the images to the email. I know how to attach them.
Its like I want to place multiple images in the body with some details for them in front of the respective image.
Is there any way to do that.
Like using html, the following code show me a question mark instead of an image.
NSData *imageData = [dbPersistenceObj getImageForEmail:[[imageIdArray objectAtIndex:i] intValue]];
NSString *encodedImage = [imageData description];
emailBody = [emailBody stringByAppendingFormat:@"<img src=\"cid:Img-1\"/>", imageData];
[picker addAttachmentData:imageData mimeType:@"image/png" fileName:@"Img-1"];