开发者

Possible to send automated email?

开发者 https://www.devze.com 2023-04-09 21:29 出处:网络
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 u开发者_开发知

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 u开发者_开发知识库ser interaction. Is this at all possible/allowed in the iOS SDK?


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.


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. :(


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消