Hello,
I want to email from the application without closing application. When I use mailTo: it will lead to end of application. Pls help me to solve this problem.
Thanks in Advance.
A fast, easy to use, free, and community supported 2D game engine
Hello,
I want to email from the application without closing application. When I use mailTo: it will lead to end of application. Pls help me to solve this problem.
Thanks in Advance.
iPhone OS only allows one app at a time - and mailTo: will open the mail.app. One thing you could do if its very important to keep it all within your app, is create a text inputbox, allow the user to compose an email, send that to your own server, and then from your server send that out as an email on the user's behalf. Im not sure Apple will approve such a feature though.
Thanks. I will try to send it with server.
My game is in cocos 2D. When I add CFNetwork.framework it will not run my application. I don't know what problem in it. If I remove that framework it works perfectly.
As of OS 3.0 Apple has provided a way to send email in-app: http://blog.mugunthkumar.com/coding/iphone-tutorial-in-app-email/
good info, thanks.
I get error if I add MessageUI.Framework in game. It display in red color. I get same error for the CFNetwork.Framwork.
Maybe you need to set your project's BaseSDK to iPhone OS 3.0? MessageUI looks like its 3.0 only. Im not sure why CFNetwork is giving you problems though.
@Gametest: I just added the MessageUI.Framework and in-app mail functionality and it works fine for me. A couple of things to try:
- Build for OS 3.0
- Click on your Target, scroll in the list to the MessageUI.Framework reference and set the Role property to "Weak" instead of "Required" this will allow the app to run on devices that do not have 3.0 installed
Hope this helps
You must log in to post.