嗨,我正在尝试发送带有照片的电子邮件。但我不想看到屏幕
like this
我想当我按下按钮邮件自动发送。
我的代码:
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];
}
答案 0 :(得分:1)
执行此操作的唯一方法是在代码中实现自己的SMTP客户端。
有关详细信息,请参阅Xcode 4 / iOS - Send an email using SMTP from inside my app。