Currently, I can set a button to take a picture, but I'm unsure how to pass this as an attachment for an email in the same view.
The view is for a quote and allows the user to enter data into a few fields then has a button to email said data.
Position your cursor where you want the image in your message. Select Insert > Pictures. Browse your computer or online file locations for the picture you want to insert. Select the picture, then select Insert.
To attach an picture as an attachment to an email, I suggest you try these steps: select the picture on your iPhone > Share > Outlook. After performing these steps, the picture will be attached as an attachment to an newly created email in Outlook.
Maybe this link would satisfy your requirement for the second half of the question...
http://www.ericd.net/2009/04/sending-email-from-iphone-application.html
UIImage *myImage = [UIImage imageNamed:@"mobiletuts-logo.png"];
NSData *imageData = UIImagePNGRepresentation(myImage);
[mailer addAttachmentData:imageData mimeType:@"image/png" fileName:@"mobiletutsImage"];
Courtesy:
http://mobile.tutsplus.com/tutorials/iphone/mfmailcomposeviewcontroller/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With