2

I am developing an app.

Can I know How to send a email from app with out using email window. ie, When I pressed a button I want to send mail automatically.

Without using the mail window.

enter image description here

Vineesh TP
  • 7,755
  • 12
  • 66
  • 130
  • FORTUNATELY, you can't send email automatically with iOS, without any explicit action from the user. – Martin Jun 21 '13 at 07:53
  • @Martin: I have a button Action. I need to send mail without using the mail composer window? – Vineesh TP Jun 21 '13 at 08:02
  • if your app can send an email with a button you implement, this app can *potentially* send the email in background. Apple force to open MFMailComposer because developers cannot control it and potentially abuse for spam purpose. Nevertheless, you can still create a mailing webservice on your own server and call it with your app. Or use that "mailCore" lib, which won't work with the user preconfigured email accounts. – Martin Jun 21 '13 at 08:10

1 Answers1

1

You can use the MailCore framework, please take a look at this example: http://alwawee.com/wordpress/2012/06/25/how-to-build-mailcore-framework-on-ios/

MailCore is a Cocoa e-mail framework built by Matt Ronge that is the core of the e-mail client Kiwi. MailCore provides a nice set of objects for working with IMAP, MIME and SMTP, all of which use the C e-mail library LibEtPan.

Leo Chapiro
  • 13,678
  • 8
  • 61
  • 92