Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add URL to vCard 2.1?

Tags:

vcf-vcard

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';
like image 615
Asbar Avatar asked Oct 17 '25 07:10

Asbar


1 Answers

I think you can do it like this:

URL;type=pref:http\://www.example.com
like image 160
Aleem Ahmad Avatar answered Oct 22 '25 04:10

Aleem Ahmad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!