title: ios , Attach Audio file aac format to Email
body: <p>i try to send a audio record by file aac (kAudioFormatMPEG4AAC) format but the file attached it's doesn't send</p>
  
  <p>*myString = file://localhost/private/var/mobile.......</p>
  
  <p>here is my code</p>
  
  <pre><code>MFMailComposeViewController *picker =
  [[MFMailComposeViewController alloc] init];
  picker.mailComposeDelegate = self;
  [picker setSubject:@"My Audio File"];  
  NSString *fileName = @"Rec.aac";  
  
  NSString *documentsDirectory = myString ;
  
  NSString *path = [documentsDirectory stringByAppendingPathComponent:fileName];
  NSData   *data = [NSData dataWithContentsOfFile:path];
  [picker addAttachmentData:data mimeType:@"audio/aac"
                   fileName:fileName];
  NSString *emailBody = @"AAC format sound file attached.";  
  [picker setMessageBody:emailBody isHTML:YES];
  [self presentModalViewController:picker animated:YES];
  [picker release];
  </code></pre>