iPhone SDK In App Emailing HD
All the main code you need: -(IBAction) { MFMailComposeViewController *mailMe = [MFMailComposeViewController alloc] init]; mailMe.mailComposeDelegate = self; if ([MFMailComposeViewController canSendMail]) {mailMe setToRecipients:[NSArray arrayWithObjects:@"unobrandon@mac.com",nil]]; mailMe setSubject:@""self presentModalViewController:mailMe animated:YES]; }mailMe release]; }void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error { [self dismissModalViewControllerAnimated:YES]; if (result == MFMailComposeResultSent) { UIAlertView *alert = [UIAlertView alloc] initWithTitle:@"Message Sent!" message:@"Your message has sent!
Thanks for sending us an E-mail!" delegate:self cancelButtonTitle:@"Grate!" otherButtonTitles:nil]; [alert show]; [alert release]; }if (result == MFMailComposeResultFailed) { UIAlertView *alert = [UIAlertView alloc] initWithTitle:@"Message Failed!" message:@"Your email has failed to send" delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil]; [alert show]; [alert release]; }follow me on twitter: www.twitter.com