this is a sample script i have developed to send vcard. hope you can get
some idea from this.

#!/usr/local/bin/php
<?
$lastname="Abeyseela";
$firstname="Tharanga";
$telephone="94xxxxxxxxx";

$text  = "BEGIN:VCARD\r\n";
 $text .= "VERSION:2.1\r\n";
 $text .= "N:".$lastname.";".$firstname."\r\n";
 $text .= "TEL;PREF:+".$telephone."\r\n";
 $text .= "EMAIL: [EMAIL PROTECTED] \r\n";
 $text .= "END:VCARD\r\n";

$encoded=urlencode($text);

$vcar=shell_exec("lynx -dump
'http://localhost:13013/cgi-bin/sendsms?username=122&password=112&to=xxxxxxx
xx&from=44&mclass=3&udh=%06%05%04%23%F4%00%00&text=$encoded' ");

?>


----- Original Message -----
From: "Raphael Maseko" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, July 09, 2008 3:29 PM
Subject: Sending V-CARD via SMS


> Hi All,
>
> I would like to find out how I can send a VCARD from my Kannel to a mobile
> phone in a format that can easily be installed on the phonebook of the
> destination phone.
>
> I have tried to send a VCARD from my phone to the kannel and then send
back
> the same to the phone. The problem is that it comes as a text and does not
> recognize it as a contact. If I send the card to another phone, it
> recognizes it as a contact and prompts for addition to phonebook.
>
> In the logs the SMS sent with a contact looks like this:
>
> :BEGIN:VCARD VERSION:2.1 N:Name1;Name2 TEL;CELL: 11111111
> X-IRMC-LUID:00020000019A
> END:VCARD
>
> Any idea how I can get kannel to send that information in a format that
will
> prompt the recipient to install the contact ?
>
> Ralph
>
>
>
>


Reply via email to