how to programmatically send business card messages to mobile phone via internet

前端 未结 1 708
情歌与酒
情歌与酒 2021-01-07 03:54

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.

1条回答
  •  悲哀的现实
    2021-01-07 04:16

    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: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\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:forrestgump@example.com
    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

    0 讨论(0)
提交回复
热议问题