Q:

Not able to send email in iOS

I am trying to send mail in iOS but it doesn't work.
Below is the code, using to send mail.
MFMailComposeViewController *mailCtrl = [[MFMailComposeViewController alloc] init];

    mailCtrl.mailComposeDelegate = self;

    [mailCtrl setSubject:@"Definition from CDE iPhone App"];

    NSString *body = [self flattenHTML:[mydef renderHTML:NO landscape:NO]];

    [mailCtrl setMessageBody:body isHTML:YES];              
    [self presentModalViewController:mailCtrl animated:YES];
    //[mailCtrl navigationBar].tintColor = [UIColor blackColor];
    [mailCtrl navigationBar].tintColor = [UIColor grayColor];
    [mailCtrl release];

above code sets the html code in the body. everything it sets properly but when tapped on the send it doesn't send the mail to the emailid provided ion To box.
Please help.... 

A:

iOS simulator doesn't allow you to send email. You'll need a physical device to test this functionality.

