video email for sharing
<p>I am using this code to attach video with mailcontroller
 but it is not atttaching video
please help me</p>

<pre><code>    MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];  
        controller.mailComposeDelegate = self;  
        [controller setSubject:@"My Subject"];  
        [controller setMessageBody:@"" isHTML:NO]; if (controller) [self presentModalViewController:controller animated:YES];  
        [controller release]; 
        NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);  
        NSString *documentsDirectory = [paths objectAtIndex:0];
        NSString *dataPath = [documentsDirectory stringByAppendingPathComponent:titleString];

        NSURL *url=[[NSURL alloc] initFileURLWithPath:dataPath];

        NSLog(@"url..%@",url);


        NSData *data = [NSData dataWithContentsOfURL:url];
        // NSLog(@"data=%@",data);

//        NSString *mp3File =[[NSBundle mainBundle] pathForResource:@"song" ofType:@"mp3"];
//        NSURL    *fileURL = [[NSURL alloc] initFileURLWithPath:mp3File];
//        NSData *soundFile = [[NSData alloc] initWithContentsOfURL:fileURL];
        [controller addAttachmentData:data mimeType:@"video/m4v" fileName:titleString];
</code></pre>
