Attach a photo to an email from my iPhone application
I have an iPhone application that picks a photos from the photo album built in App. Now I want to add a sharing button with an option of sharing this photo by email , I can attach an existing photo through this code : MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; [picker setSubject:@""]; // Set up recipients NSArray *toRecipients = [NSArray arrayWithObject:@""]; [picker setToRecipients:toRecipients]; // Attach an image to the email NSString *path = [[NSBundle mainBundle] pathForResource:@"project existing photo" ofType:@