0

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.

Mo Agh
  • 21
  • 2
  • possible duplicate of [iphone app send email](http://stackoverflow.com/questions/1494626/iphone-app-send-email) – Brad Larson Nov 10 '10 at 18:57

3 Answers3

3

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

Vladimir
  • 170,431
  • 36
  • 387
  • 313
0

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.

Moshe
  • 57,511
  • 78
  • 272
  • 425
0

Take a look at below URL;

http://howtomakeiphoneapps.com/2009/07/how-to-make-your-iphone-app-send-email-with-attachments/

jfalexvijay
  • 3,681
  • 7
  • 42
  • 68