Search code examples
iosiphoneappstore-approvalmfmailcomposer

App Rejected due to Mail


My App got rejected and reason is below:-

Did not integrate with iOS features. For example, the email button should enable users to compose emails in the app rather than launching the Mail app.

I did not get that what they want. I have used MFMailComposer class so what's wrong with it?Any Suggestion.


Solution

  • Did you do it like this:

    - (IBAction)pushMail:(id)sender { //A button that initiates composition
        MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
        controller.mailComposeDelegate = self;
        [controller setSubject:@"My Mail Subject"];
        if (controller) [self presentModalViewController:controller animated:YES];
        [controller release];
    }
    - (void)mailComposeController:(MFMailComposeViewController*)controller  
              didFinishWithResult:(MFMailComposeResult)result 
                            error:(NSError*)error;
    {
        if (result == MFMailComposeResultSent) {
            NSLog(@"It's away!");
        }
        [self dismissModalViewControllerAnimated:YES];
    }
    

    I think you have to use an MSMailComposeViewController (as I have in the above example) to do what you want.