-(void)composeSupportEmail:(id)sender {
NSString *emailTitle = @"Title";
NSString *messageBody = @"Message";
NSArray *toRecipents = [NSArray arrayWithObject:@"foo@bar.com"];
MFMailComposeViewController *mc = [[MFMailComposeViewController alloc] init];
mc.mailComposeDelegate = self;
[mc setSubject:emailTitle];
[mc setMessageBody:messageBody isHTML:NO];
[mc setToRecipients:toRecipents];
// Present mail view controller on screen
[self.parentController presentModalViewController:mc animated:YES];
}
-(void)mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError *)error {
[self.parentController dismissModalViewControllerAnimated:YES];
}