MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init];
controller.mailComposeDelegate = self;
[controller setToRecipients:[NSArray arrayWithObject:@"sales@info.com"]];
[controller setSubject:@""];
[controller setMessageBody:self.messageText.text isHTML:NO];
[self presentViewController:controller animated:YES completion:nil];
这里我得到 MFMailComposeViewController 用于发送邮件,但我不想在发送邮件时使用 MFMailComposeViewController,直接发送到接收者
单击发送按钮获取 mvc 时,消息已存储在“messageText.text”中