title: Trying to send email, getting "use of undeclared unidentified MFMailComposeViewController"
body: <p>I'm trying to send a email message in my app. I'm trying to use the MFMailComposeViewController object, but getting a error message saying its  a "undeclared identifier"</p>
  
  <p>code:</p>
  
  <pre><code>-(IBAction) aContact: (id) sender;
  {
  
  
      if([MFMailComposeViewController canSendMail]){
  
          MFMailComposeViewController *mailCtrl = [[[MFMailComposeViewController alloc] init] autorelease];
          [mailCtrl setSubject:@"Your TellaFortune Card Reading"];
          //  [mailCtrl setToRecipients:[NSArray arrayWithObject:@"drblyer@cameosurgery.com"]];
          mailCtrl.mailComposeDelegate = self;
  
          NSString *send;
          send=[ NSString stringWithFormat: @"%@ %@",content,@"\n \n By www.TellaFortune.com"];
          [mailCtrl setMessageBody: send  isHTML: false];
  
          [self presentModalViewController:mailCtrl animated:NO];
          //      [mailCtrl release];
  
      }
      else
      {
          UIAlertView *alert=[[ UIAlertView alloc]
                              initWithTitle:@"Cannot send email"
                              message: @"Please check internet connection and email set up"
                              delegate: self
                              cancelButtonTitle:@"Ok"
                              otherButtonTitles: nil];
  
          [alert show];
      }
  
  }
  </code></pre>