从 iPhone 上的 Web 应用程序生成电子邮件
好的。问题是。
我们有一个用纯 HTML 和 纯 HTML 编写的 Web 应用程序。用于 WebKit 设备(主要是 iPad)的 JavaScript。 它的主要目的是为人们离线时提供服务,在内部存储中存储大量结构化数据。但该应用程序仍然是一个纯 HTML 和 HTML 格式的应用程序。 JavaScript 应用程序。它没有本地 iOS 应用程序安装,可以通过浏览器访问。
由于某些原因,我们希望用户按下表单上的按钮,并使用存储在本地浏览器存储中的文本创建电子邮件,我们通过 JavaScript 成功访问了该存储。
本地存储中的数据是纯字符串数据。它不是二进制或编码数据。但数量相当大:可能约为 20-30K(20-30 万个符号)。
是否有可能让网络应用程序创建电子邮件并将所有这些数据以我们存储的文本形式传递到电子邮件中?我们只是想确保为用户提供离线时将数据存储在本地队列中的替代方法。
谢谢。我们将不胜感激任何建议。
Ok. The question is.
We have a web app written in pure HTML & JavaScript for WebKit devices (primarily iPad).
Its main purpose is to serve people when they're offline to store a lot of structured data in the internal storage. But the application is still a pure HTML & JavaScript app. It doesn't have a native iOS app installation, it is accessed from browser.
Due to some reasons we would like to provide the users to press the button on the form and create the e-mail with the text that is stored in local browser storage, which we successfully access through JavaScript.
The data in the local storage is pure string data. It is not a binary or encoded data. But the amount is pretty large: can be around 20-30K (20-30 thousands of symbols).
Is it possible at all to make the web app to create the email and pass around all these data into email in the text form we're storing it? We would just like to be sure to provide users with alternate way of storing the data in the local queue while they're offline.
Thanks. We would appreciate any suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如 @sosborn 在对我最初的问题的评论中所建议的那样,移动 Safari 允许将更多字符作为 URL 的一部分发布。因此,大约 50000 个字符的内容已成功测试,并且创建了电子邮件,完整内容没有任何问题。
还针对 150k 文本进行了测试 - 适用于 iOS 和 Android
As @sosborn suggested in his comments to my initial question, the mobile Safari allows much larger number of characters to be posted as a part of URL. So, the content of around 50000 characters was successfully tested and email was created without problems with the full content.
This was tested additionally for 150k text - works for both iOS and Android