我想从我的iPad应用程序中调用带有自定义正文的iPad电子邮件应用程序。发件人和主题将为空,我要设置的唯一参数是电子邮件的文本。我该怎么办?
谢谢!
最佳答案
为什么不只在您的应用程序内打开电子邮件撰写器呢?
MFMailComposeViewController *mailController = [[MFMailComposeViewController alloc] init];
[mailController setSubject:@"my subject"];
[mailController setMessageBody:@"my message" isHTML:NO];
mailController.mailComposeDelegate = self;
UINavigationController *myNavController = [myViewController navigationController];
if ( mailController != nil ) {
if ([MFMailComposeViewController canSendMail]){
[myNavController presentModalViewController:mailController animated:YES];
}
}
[mailController release];