iPhone--如何将电子邮件附件上传到服务器
大家好,
我正在为 iPhone 制作一个应用程序,我想上传来自电子邮件的任何文档或文件作为附件。
就像我在电子邮件中收到 Untitled.doc 和 Untitled.xls 文件作为附件一样。在我的 iPhone 中接收电子邮件,现在我想将其上传到我的服务器,那么 iPhone 是否可以这样做,因为我确实知道我们没有访问 iPhone 的文件系统的权限,
如果这件事是可能的,那么如何执行任何人都可以提供代码或教程
任何人都可以告诉我电子邮件附件存储在iPhone中的位置吗?
提前谢谢。
HI ALL,
I am making an application for iPhone in that I want to upload any document or any file that is coming from email as an attachment.
Like I am receiving a Untitled.doc and Untitled.xls files as attachment in Email. Receiving email email in my iPhone , now I want to upload the same to my server then is it possible with iPhone as I do come to know that we don't have permission to access the file system of iPhone,
If this thing is possible then how to perform can any one provide code or tutorial
Can any one tell me where the email attachments are stored in the iPhone ??
thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的应用程序无法读取用户收件箱。如果您的应用程序想要拥有 Microsoft Word 文档和 Excel 电子表格,则必须向 iOS 注册才能处理这些类型的文档。 统一类型标识符简介 概述
然后,当用户选择电子邮件中的附件时,您的应用程序将列在呈现给用户的“打开方式...”对话框中。如果用户选择您的应用程序,您的应用程序将获取文档的 URL。此时您可以将文件上传到服务器。
Your application cannot read the user inbox. If your application wants to have Microsoft Word documents and Excel spreadsheet, it will have to register with iOS that it can handle those types of documents. Introduction to Uniform Type Identifiers Overview
Then when the user selects the attachment in the e-mail message, your application will be listed in "Open in..." dialog presented to the user. If the user if selects your app, your app will get the URL of document. At that point you can upload the file to the server.
您必须实现自己的电子邮件客户端。 libetpan 对此非常有效。
you have to implement your own email client. libetpan works quite well for this.