How to send mail from iphone app without showing MFMailComposeViewController?

后端 未结 2 737
花落未央
花落未央 2020-11-27 07:55

I want to send mail from my custom iPhone app. I have used MFMailComposeViewController to send mail from my iphone in my previous app. Now, i don\'t want to sho

2条回答
  •  囚心锁ツ
    2020-11-27 08:37

    Sending emails programmatically, without user intervention, from an iphone application, cannot be implemented using any of the Apple frameworks. It could be possible in a jailbroken phone but then it would never see the inside of App Store.

    If you want control of email sending, then a better way would be to set up a web service (at your server end) you can post to using an HTTP request. If you are posting to only one address this can work very well, although you may want to get the user to input their return mail address.

    Otherwise only the standard dialog is available (this relies on using whatever account they've setup on the device).

提交回复
热议问题