我正在使用此代码并提供设置以检查邮件帐户是否已设置。但是当它到达NSArray *toRecipients = [NSArray arrayWithObject: @"feedback@xyz"];
时
它被中止了。我的代码如下。 MessageUI.framework
也很好。
MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setSubject:@"heading"];
[controller setMessageBody:@"some text" isHTML:NO];
NSArray *toRecipients = [NSArray arrayWithObject: @"feedback@xyz"];
[controller setToRecipients:toRecipients];
[self presentModalViewController:controller animated:YES];
[controller release];
答案 0 :(得分:0)
收件人电子邮件地址无效。这就是问题发生的原因。使用此:
@"feedback@gmail.com"