ios 与 mailto 结合共享联系人
在 IOS 中,我希望有一个 mailto 链接,其中包含预填充收件人地址、主题行和消息正文的属性。我想这就像在 macOS 中一样受支持吗? IOS 在此方面还提供其他功能吗?
在打开新的预填充电子邮件的过程中,我还想建议用户将他的个人(或其他)联系方式作为 vcf 卡添加到电子邮件中。
我知道联系人应用程序中每个联系人底部的“共享联系人”按钮可以在邮件中以 vcf 文件形式发送联系人,但此路线不为我提供预填充的电子邮件字段。
我怎样才能将两全其美结合起来?从网页预填电子邮件字段并共享联系人(不使用其他 iOS 应用程序)?
在最坏的情况下,我不得不要求用户分享他们的联系方式,并复制粘贴收件人地址、主题行和正文。我可以使用 JS 将所有 3 个内容以及说明(将主题行和收件人地址从正文移动到其字段)复制到剪贴板中,然后要求它们粘贴到正文中。 会支持吗?
其他建议?
In IOS I would like have a mailto link with attributes to prefill recipient-address, subjectline, and messagebody. I assume this is supported just like in macosx? Any additional features IOS offers on this?
Within this process of opening a new prefilled email, I would also like to offer the user to add his personal (or other) contact details as a vcf card to the email.
I know the "share contact" button at the bottom of every contact in the contacts app can send contacts as vcf files in mail, but this route doesn't offer me prefilled email fields.
How can I combine the best of both worlds; prefilled email fields and share contact, from a webpage (without using additional ios apps)?
In the worst case, I'd have to ask users to share their contact, and copy paste the recipient-address, subjectline and body. I could copy all 3, with instructions (move subjectline and recipient-address from body to their fields), into the clipboard with JS, and just ask them to paste into the body.
Would that be supported?
Other suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
iOS 支持使用 mailto 来填写主题字段、消息以及“收件人”、“抄送”和“密件抄送”字段中的多个收件人。不支持
from
属性。 (来源)但是,无法共享联系人网络浏览器。您必须编写一个本机应用程序。
看看
MFMailComposeViewController
。
iOS supports mailto for filling in subject field, message and multiple recipients in the To, Cc, and Bcc fields. The
from
attribute is not supported. (Source)However, sharing a contact is not possible from the web browser. You'd have to write a native app.
Take a look at
MFMailComposeViewController
.ios 用户无法将其联系信息作为 vcf 附加到(mailto 诱导的)电子邮件,但可以将 vcf 作为真实电子邮件的附件发送(主题行已预先填充“联系人”,但所有字段都可以更改)联系人内。如果您需要用户的联系信息,请要求他们以这种方式发送,并指导他们在字段中粘贴或写入什么内容(如果重要)。
因此,iOS 上失去了从带有预填充字段的浏览器链接自动生成新电子邮件的便利性。
ios user's can't attach their contact info as a vcf to a (mailto induced) email, but can send the vcf, as attachment to a true email (subject line is pre-filled 'contact' but all fields can be changed) from within contacts. If you need the user's contact info, ask them to send it that way, and instruct them what to paste or write in the fields, if important.
So the convenience of automatically inducing a new email from a browser link with pre-filled fields is lost on ios.