Iphone从应用程序发送电子邮件 [英] Iphone send email from application

查看:107
本文介绍了Iphone从应用程序发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



使用[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@mail @ mail.com]],电子邮件应用程序打开,用户无法返回主应用程序。



有没有办法我可以将用户发回发送电子邮件后的应用程序?



非常感谢。

解决方案

p>查看MFMailComposeViewController类(需要MessageUI.framework) - 它为您提供标准的UI,以便从应用程序内部创建和发送邮件


I need to be able to send emails from within the application I am developing.

Using [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mail@mail.com"]] , the email application opens and the user can't go back to the main application.

Is there a way I can send the user back to the application after they are done sending emails ?

Many Thanks.

解决方案

Have a look at MFMailComposeViewController class (requires MessageUI.framework) - it provides you with standard UI to create and send mails from inside of your application

这篇关于Iphone从应用程序发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆