Posted By

saturngod on 10/11/10


Tagged

MessageUI


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

bobbym245
joshparnham
cnathan


Send Email in iPhone SDK


 / Published in: Objective C
 

  1. //using messageUI framework
  2. -(void)sendmessage
  3. {
  4. MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
  5. controller.mailComposeDelegate = self;
  6. [controller setSubject:@"Conference Call"];
  7. [controller setMessageBody:@"HELLO" isHTML:NO];
  8. [self presentModalViewController:controller animated:YES];
  9. [controller release];
  10. }
  11.  
  12. - (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error
  13. {
  14. NSLog(@"HERE");
  15. [self dismissModalViewControllerAnimated:YES];
  16. }

Report this snippet  

You need to login to post a comment.