如何通过互联网以编程方式将名片消息发送到手机

发布于 2024-10-22 06:44:50 字数 168 浏览 2 评论 0原文

是否可以以名片格式从互联网发送消息。 ?我需要将联系人发送到手机,以便收件人可以轻松保存该联系人。

使用短信API我们可以发送短信,但是如何发送名片文件?

在我的项目场景中,我有 10 个人的电话号码,我需要将这些号码以名片格式发送到另一部手机。

关于如何实施有什么想法吗?

Is it possible to send messages from internet in business card formats. ? I need to send a contact to a mobile phone so that the recipient can save the contact easily.

using sms api s we can send sms but how to send business card files ?

In my project scenario I have telephone numbers of 10 persons which I need to send the numbers to another mobile phone in business card format.

Any ideas on how to implement ?

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

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

发布评论

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

评论(1

夜巴黎 2024-10-29 06:44:50

vCard 是一种文件格式标准
电子名片。电子名片
通常附加在电子邮件中,
但可以通过其他方式进行交换,
例如在万维网上或
即时消息。它们可以包含
姓名和地址信息、电话
号码、电子邮件地址、URL、
徽标、照片,甚至音频
剪辑。

有关 vCard 的更多信息,请访问 Wikipedia

vCard 具有特定的格式,维基百科上的示例如下

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:[email protected]
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\nBaytown, LA 30314\nUnited States of America
ADR;TYPE=HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America
LABEL;TYPE=HOME:42 Plantation St.\nBaytown, LA 30314\nUnited States of America
EMAIL;TYPE=PREF,INTERNET:[email protected]
REV:20080424T195243Z
END:VCARD

手机上收到的 vCard 只是 vCard 格式的短信。

所以回答您的问题

我正在使用 SMS API 发送短信,但是如何
发送名片文件?
是吗
可以从以下位置发送消息
名片格式的互联网?
我需要将联系人发送到手机
电话以便收件人可以保存
轻松联系。

是的,您可以将 vCard 发送到手机,只需将联系人详细信息格式化为 vCard 格式并以短信形式发送即可。

但请注意,不同手机的 vCard 格式有所不同。
不同设备上的不同 vCard 格式

另请参阅
3 种不同的格式发送电子名片
通过 SMS 消息向各种诺基亚手机发送 vCard 消息
通过短信发送 vCard

vCard is a file format standard for
electronic business cards. vCards
are often attached to e-mail messages,
but can be exchanged in other ways,
such as on the World Wide Web or
Instant Messaging. They can contain
name and address information, phone
numbers, e-mail addresses, URLs,
logos, photographs, and even audio
clips.

More info on vCard at Wikipedia.

A vCard has a particular format, an example on Wikipedia is as follows

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:[email protected]
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\nBaytown, LA 30314\nUnited States of America
ADR;TYPE=HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America
LABEL;TYPE=HOME:42 Plantation St.\nBaytown, LA 30314\nUnited States of America
EMAIL;TYPE=PREF,INTERNET:[email protected]
REV:20080424T195243Z
END:VCARD

A vCard received on a mobile phone is simply a SMS in a vCard format.

So to answer your question

I am using SMS API to send SMS but how
to send business card files?
Is it
possible to send messages from
Internet in business card formats?
I need to send a contact to a mobile
phone so that the recipient can save
the contact easily.

Yes, you can send a vCard to a mobile phone, just format the contact details in a vCard format and send it as SMS.

But be aware that the vCard format is different for different phones.
Different vCard formats on different devices

Also See
3 Different formats to send a vCard
vCard message through a SMS message to various Nokia phones
vCard via SMS

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文