iOS发送邮件功能
来源:互联网 发布:诺基亚rm1013下载软件 编辑:程序博客网 时间:2024/09/21 09:24
- (void)test{NSURL *url = [NSURL URLWithString:@"mailto://邮箱地址"];[[UIApplication sharedApplication] openURL:url];} - (void)sendMail{MFMailComposeViewController *vc = [[MFMailComposeViewController alloc] init];//设置主题[vc setSubject:@"联系作者"];//设置邮件内容[vc setMessageBody:@"请说出您对软件的建议" isHTML:YES];//设置发送人[vc setToRecipients:@[@"输入邮箱地址"]];//抄送//[vc setCcRecipients:@[@""]];//密送//[vc setBccRecipients:@[@""]];vc.mailComposeDelegate = self;[self presentViewController:vc animated:YES completion:nil];} - (void)mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError *)error{//关闭邮件界面[controller dismissViewControllerAnimated:YES completion:nil];} #pragma mark – 发送按钮- (IBAction)sendBtn {[self sendMail];}
0 0
- iOS发送邮件功能
- 发送邮件功能
- 邮件发送功能
- java 发送邮件功能
- JavaMail发送邮件功能
- Java 发送邮件功能
- Spring邮件发送功能
- 邮件发送功能
- 邮件发送功能
- JavaMail邮件发送功能
- YII 邮件发送功能
- 发送邮件功能
- java发送邮件功能
- Unity发送邮件功能
- java 发送邮件功能
- java---发送邮件功能
- Java 邮件发送功能
- 自动发送邮件功能
- SVN分支/合并原理及最佳实践
- HDU - 1728 逃离迷宫
- Me
- Visual Studio各版本区别
- jexus v5.5.1使用
- iOS发送邮件功能
- Java中String类的知识
- 不经意间犯得一个java.util.NoSuchElementException的错误
- 微信公众平台实现音乐点播(PHP版)
- 分享VC++中传统控件的控件通知消息
- 【BFS模板】HDU1253 胜利大逃亡
- pcap文件解析--pcap文件头与包文件头(一)
- cygwin安装、卸载及一些问题解决
- 信息与熵的计算