Iphone SDK : Send Email in background in iphone app

十年热恋 提交于 2019-11-27 03:37:18

问题


Iphone sdk : how to send an email in background from an iphone app.

Based on certain selections made by the user I want to trigger an event to send an email to an admin.

I am aware of the MFMailComposeViewController but this will open the mail composer window which I want to skip.


回答1:


You will need to use a third party library for that. The SDK doesn't allow you to send emails in the background.

Here's one you can use:

http://code.google.com/p/skpsmtpmessage/




回答2:


This is an old question, but for anyone coming across it still you can take a look at this post. The accepted answer shows how to send the email in a background using a smtp server. It also includes an image that will "dim" the screen as the email is sent and "brighten" back up after the email is sent. Take a look at the screen shot to see what I mean.

Locking the Fields in MFMailComposeViewController



来源:https://stackoverflow.com/questions/2827014/iphone-sdk-send-email-in-background-in-iphone-app

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