E-Mail-Versand mit MFMailComposeViewController im Simulator nicht möglich
Ich bin neu in der ios App-Entwicklung. Unten ist der Code, mit dem ich eine E-Mail gesendet habe.
MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setSubject:@"My Subject"];
[controller setMessageBody:@"Hello there." isHTML:NO];
[self presentModalViewController:controller animated:YES];
[controller release];
- (void)mailComposeController:(MFMailComposeViewController*)controller
didFinishWithResult:(MFMailComposeResult)result
error:(NSError*)error {
if (result == MFMailComposeResultSent) {
NSLog(@"It's away!");
}
[self dismissModalViewControllerAnimated:YES];
}
Leider werden Delegate-Methoden nie ausgelöst. Kann mir jemand einen Vorschlag machen, wie ich meine E-Mails per Simulator abrufen kann?