Possible to send automated email?

放肆的年华 提交于 2019-12-17 16:36:10

问题


The iOS SDK class MFMailComposeViewController can be used to let the user compose an email message.

What I'd like to do, is for the iOS app to send an email in the background, with no user interaction. Is this at all possible/allowed in the iOS SDK?


回答1:


Nope. There isn't any API available to do this. You'd need to roll your own SMTP client and have the user enter credentials into your application. On top of that Apple may not approve this.




回答2:


Unfortunately, I don't think Apple would ever allow this because (for example) then you could just get everyone's email address by auto-sending mail to yourself. :(




回答3:


I actually wanted to implement something like this for the express purpose of alerting me when a critical error happens on an app in the app market.

Best solution would be to create an API (just ping a php file or something), and have it send the relative alert message to your email).



来源:https://stackoverflow.com/questions/7630862/possible-to-send-automated-email

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!