从应用程序导出联系人

发布于 2024-08-13 09:06:48 字数 322 浏览 3 评论 0原文

我正在维护一个内部 ASP.NET Web 应用程序,其中一部分包括为我们的销售团队提供的客户关系管理模块。他们想要的事情之一是能够将他们的所有联系人从我们的数据库导出到他们的各种电子邮件客户端(Windows 上的 Outlook,Mac 上的各种)和手机(iPhone、黑莓 - 可能是 Android)中。 vCard 似乎是传输联系人信息的标准方式,但是...

  1. 是否可以通过连接 vCard BEGIN/END 块在单个 vCard 中指定多个联系人?
  2. vCard 导入支持是否统一,或者客户端之间是否存在怪癖?
  3. 还有其他提示/技巧/陷阱吗?

I am maintaining an in-house ASP.NET web app, part of which includes a Customer Relationship Management module for our sales team. One of the things they want is to be able to export all their contacts out of our database into their wide variety of email clients (Outlook on Windows, allsorts on Mac) and phones (IPhones, Blackberries - probably Androids). vCard seems to be the standard way to transfer contact information, but...

  1. Is it possible to specify multiple contacts in a single vCard by concatenating the vCard BEGIN/END blocks?
  2. Is vCard import support uniform, or are there quirks between clients?
  3. Any other tips/tricks/gotchas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

未蓝澄海的烟 2024-08-20 09:06:48

我可以帮助您解决第一个问题,因为 Outlook 不喜欢在一个文件中包含多个 vCard,所以您必须执行一个文件一个联系人。

马库斯

I can help you with the first question, in that outlook does not like multipule vCards in one file, you would have to do one file one contact.

Marcus

静水深流 2024-08-20 09:06:48
  1. 您可以连接 vCard,只需在每个 vCard 之间放置一个空行(标准实际上要求 END 行之后有一个空行)。
  2. 导入支持很粗略。 Outlook 几乎可以导入任何内容,但经常会在此过程中丢失数据(至少当我几年前尝试时)。 Thunderbird 支持电子邮件中的 vCard,但如果没有插件,则不会从文件导入 vCard。 Gmail 实际上拥有我所见过的最好的 vCard 支持,可以成功导入许多字段,甚至包括 base64 JPEG 图像。与我交流过的许多人都抱怨我附加的 vCard,因为他们的客户端/网络邮件站点不知道如何处理它。真丢脸;这是我们轻松交换联系信息的唯一选择。
  3. 不要指望任何工具能够生成有效的 vCard。此外,根据标准,大多数 vCard 都是无效的(即使是那些嵌入标准本身的 vCard!)。我开发了一个 vCard 验证器(令人惊讶的是,谷歌上的第一个结果) - 它并不完整,但它使我在网上找到的几乎所有 vCard 无效,无论是否生成。在开发过程中很明显,该标准相当参差不齐 - 有些地方指定了不区分大小写,有些地方似乎应该如此,但没有提及,有些东西确实很难解析(例如 ISO 日期),有没有命名空间支持(可以使用X-properties),推荐的换行系统很痛苦,等等。
  1. You can concatenate vCards, just put an empty line between each vCard (the standard actually requires an empty line after the END line).
  2. Import support is sketchy. Outlook will import pretty much anything, but often loses data in the process (at least when I tried it a few years ago). Thunderbird supports vCards in emails, but doesn't import vCards from file without a plugin. Gmail actually has the best vCard support I've ever seen, importing many fields successfully, including even base64 JPEG images. Many people I've communicated with complain about my attached vCard, because their client / webmail site doesn't know what to do with it. Shame really; it's the only alternative we've got for easy contact info exchange.
  3. Don't expect any tool to generate valid vCard. Also, most vCards out there are not valid according to the standard (even those embedded in the standard itself!). I developed a vCard validator (first result on Google, surprisingly) because of this - It's not complete, but it invalidates almost every vCard I've found online, generated or not. It became clear during development that the standard is quite spotty - Some places it's specified that things are case insensitive, some places it seems like it should be but it's not mentioned, some things are really hard to parse (such as ISO dates), there's no namespace support (X-properties can be used), the recommended line break system is a pain, and so on.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文