[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
why don't these cell phones recognize my vCards?
Hi everyone,
I just susbscribed to this list. I'm making tests with a perl script mailer
to send vCards to cell phones by SMS, either as inline text or attachment
and I've tried all sorts of variations, based on the specs outlined on the
imc.org site and other sources, but I'm still unsuccesful. Both a Siemens
SL56 and Sony Ericsson T610 receive it but doesn't recognize it as a vCard,
they either just display the card as regular text or as an attachment (If I
choose so) but still with no option to use it as a vCard, how come?
I know for sure that it's not that the phones actually don't recognize the
vCard format since, when sending the same vCards by infrared, they are
correctly identified by the phone and it offers to add the contacts to the
phone book. So what's the trick, what's the detail that I'm forgetting that
would make a phone recognize that it's being sent a vCard by email/sms?
Here is a sample of the perl code I use, it's just one of the many
variations I tried (see below for details on what I tried):
(there is more code before that, but here is the actual mailing code)
$mailer = "/usr/sbin/sendmail -t";
open(INF,"|$mailer") || die "Failed to open $mailer\n" ;
#print the headers
$from = "test\@nowhere.com";
printf INF "Content-Type: text/x-vCard\; charset=us-ascii\r\n";
printf INF "Content-Transfer-Encoding: 7bit\r\n";
printf INF "From: $from\r\n";
printf INF "To: 5148800781\@pcs.rogers.com\r\n";
printf INF "Content-Disposition: attachment;\r\n";
printf INF " filename=\"eric.vcf\"\r\n";
# Build test vCard
$mess .= "BEGIN:VCARD\r\n";
$mess .= "VERSION:2.1\r\n";
$mess .= "N:meteo\r\n";
$mess .= "TEL;WORK:514-283-3010\r\n";
$mess .= "END:VCARD\r\n";
printf INF "\n" ; # A new line to indicate the body of the message
printf INF "$mess"; # The Message itself
close INF; # Close and exit - DONE!!
FYI, I've tried various things, such as:
- only \n instead of \r\n at the end of my header lines
- disposition: inline
- "Content-Type: text/plain" instead of vCard
- mentioning the filename in the content-type tag, as suggested somewhere on
imc.org...
- tried encoding "7bit" and "8bit" as well, as I saw both possibilities
suggested in various places.
- and so on
So what am I doing wrong or not getting?
Thanks in advance for your help,
Eric