Asbar
Asbar

Reputation: 391

How to add URL to vCard 2.1?

I am trying to add the website URL to business card.I have created the vCard string and the business card is generating with image. All that is left is the website URL.

The string I am generating is :

$vcard = 'BEGIN:VCARD
VERSION:2.1
N:'.$attendee['name'].'
FN:'.$attendee['name'].'
ORG:'.$attendee['organization'].'
TITLE:'.$attendee['title'].'
TEL;WORK;VOICE:'.$attendee['phone'].'
EMAIL;PREF;INTERNET:'.$attendee['email'].'
PHOTO;ENCODING=BASE64;TYPE=JPG:'.$image.'
REV:20080424T195243Z


END:VCARD';

Upvotes: 4

Views: 4237

Answers (1)

Aleem Ahmad
Aleem Ahmad

Reputation: 2539

I think you can do it like this:

URL;type=pref:http\://www.example.com

Upvotes: 3

Related Questions