Quote:
Originally Posted by Dhanunjaya
Hi All,
I am new to iPhone development. I want to know how to send a recorded audio file as an attachment to an email. I tried the following code...
NSString *mp3File = [NSTemporaryDirectory() stringByAppendingPathComponent: @"recordedTmpFile.mp3"];
NSURL *fileURL = [[NSURL alloc] initFileURLWithPath:mp3File];
NSData *soundFile = [[NSData alloc] initWithContentsOfURL:fileURL];
[picker addAttachmentData:soundFile mimeType:@"audio/mpeg" fileName:@"recordedTmpFile"];
But i didn't ge.......
Can anyone know this please help me guys.......
please help me.........
Thanks in advance
Dhanunjaya M
|
Kinda old topc, but im facing with the same problem.
Anyone got some tip why cant i recieve the sent audio? On the preview box i can see, but when i check it on the "receiver" the mail is just blank. :S