title: How to send mail from iphone app without showing MFMailComposeViewController?
body: <p>I want to send mail from my custom iPhone app. I have used <code>MFMailComposeViewController</code> to send mail from my iphone in my previous app. Now, i don't want to show the <code>MFMailComposeViewController</code> to the user, if they click <code>Send Mail button</code> the mail automatically send to the <code>recipient mail address</code>. How can i do this? Can you please help me on this? Thanks in advance.</p>
  
  <p>I have used below code to show the MFMailComposeViewController,</p>
  
  <pre><code>MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
  controller.mailComposeDelegate = self;
  [controller setSubject:@"Details"];
  [controller setMessageBody:@"Hi" isHTML:NO];
  [controller setToRecipients:[NSArray arrayWithObjects:@"abcd.m@gmail.com", nil]];
  [self presentModalViewController:controller animated:YES];
  [controller release];
  </code></pre>