Iphone send email from application
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 开发者_如何学Copens 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
Not that I know of, but you can include a mail composer in your application.
Look into the MFMessageComposer class and the MessageUI framework. It will allow you to show a Mail Composer view within your app.
Take a look at below URL;
http://howtomakeiphoneapps.com/2009/07/how-to-make-your-iphone-app-send-email-with-attachments/
精彩评论