I have a .wav file on the iPhone device that I would like to attach automatically to an email that people send from within my app. How would I do this?
you could attach a file in mail by using the addAttachmentData
method of MFMailComposeViewController
class.
- (void)addAttachmentData:(NSData*)attachment mimeType:(NSString*)mimeType fileName:(NSString*)filename
Try with using the below statement.
[controller addAttachmentData:myWavData mimeType:@"audio/x-wav" fileName:@"myfile.wav"];