0

Hi i all i am trying send email with a photo. But i dont want see the screen
like this i want when i pushed the button mail send automoticly. my code:

MFMailComposeViewController * mailView = [[MFMailComposeViewController alloc] init];
[mailView setMailComposeDelegate:self];  
[mailView setSubject:@"Subject"];
[mailView setToRecipients:self.selectedArray];
[self presentModalViewController:mailView animated:YES];
[mailView release];  

- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error {

    [controller dismissModalViewControllerAnimated:YES];
}
EmptyStack
  • 51,274
  • 23
  • 147
  • 178
ali10
  • 75
  • 1
  • 8

1 Answers1

1

The only way to do this is by implementing your own SMTP client in code.

See Xcode 4 / iOS - Send an email using SMTP from inside my app for more info.

Community
  • 1
  • 1
Rok Jarc
  • 18,765
  • 9
  • 69
  • 124