导出和导入 Vcard

2022-01-23 00:00:00 gmail php iphone android mobile

我想允许用户将他们的联系人(电子邮件)导入我的 php 应用程序.我正在考虑 vcard 格式,因为大多数手机都允许导出 vcard.现在我有一些疑问

I want to allow users to import their contact(email) into my php application. I am considering vcard format as most mobile phones allow vcard export. Now i have a few doubt

  1. iphone, android, blackberry, symbian 是否允许导出为 vcard,并且所有的 vcard 格式都是一样的.

  1. Do iphone, android, blackberry, symbian allow export as vcard and is the vcard format same by all.

您也可以导出 Gmail 联系人电子名片,格式也一样

Also u can export Gmail contacts vcard is that too in same format

你可以将苹果邮件、outlook、雷鸟联系人导出为电子名片

Can u export apple mail, outlook, thunderbird contacts as vcard

推荐答案

我认为如果他们遵守标准(不能确定没有足够幸运拥有所有这些设备),那么是的,他们应该导出相同的.

I would think that if they abide with the standard (Cant be sure as not lucky enough to own all those devices) then yes they should export the same.

来自 http://en.wikipedia.org/wiki/VCard

以下是包含一个人信息的 VCard 文件示例:

The following is an example of a VCard file containing information for one person:

vCard 2.1:

BEGIN:VCARD
VERSION:2.1
N:Gump;Forrest
FN:Forrest Gump
ORG:Bubba Gump Shrimp Co.
TITLE:Shrimp Man
TEL;WORK;VOICE:(111) 555-1212
TEL;HOME;VOICE:(404) 555-1212
ADR;WORK:;;100 Waters Edge;Baytown;LA;30314;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:100 Waters Edge=0D=0ABaytown, LA 30314=0D=0AUnited States of America
ADR;HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:42 Plantation St.=0D=0ABaytown, LA 30314=0D=0AUnited States of America
EMAIL;PREF;INTERNET:forrestgump@example.com
REV:20080424T195243Z
END:VCARD

vCard 3.0:

BEGIN:VCARD
VERSION:3.0
N:Gump;Forrest
FN:Forrest Gump
ORG:Bubba Gump Shrimp Co.
TITLE:Shrimp Man
PHOTO;VALUE=URL;TYPE=GIF:http://www.example.com/dir_photos/my_photo.gif
TEL;TYPE=WORK,VOICE:(111) 555-1212
TEL;TYPE=HOME,VOICE:(404) 555-1212
ADR;TYPE=WORK:;;100 Waters Edge;Baytown;LA;30314;United States of America
LABEL;TYPE=WORK:100 Waters Edge
Baytown, LA 30314
United States of America
ADR;TYPE=HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America
LABEL;TYPE=HOME:42 Plantation St.
Baytown, LA 30314
United States of America
EMAIL;TYPE=PREF,INTERNET:forrestgump@example.com
REV:20080424T195243Z
END:VCARD

vCard 标准的 2.1 版得到电子邮件客户端的广泛支持.vCard 格式的 3.0 版是 IETF 标准跟踪提案,包含在 RFC 2425 和RFC 2426.

Version 2.1 of the vCard standard is widely supported by e-mail clients. Version 3.0 of the vCard format is an IETF standards-track proposal contained in RFC 2425 and RFC 2426.

相关文章