Sending Vcard via URL Parameters

Sending Vcard via URL Parameters SearchSearch
Author Message
Peter Thompson
New member
Username: Ee8prt

Post Number: 15
Registered: 03-2004
Posted on Wednesday, February 09, 2005 - 03:39 pm:   

Hi,

I was just wondering if it was possible to send a vCard via URL parameters. I have succesfully used the URL approach to send SMS, MMS, WAP Push etc. but would like to send a vCard using the same method.

I know nowSMS supports vCards as you can send one from the standard web interface, looking at the documentation for the the sending of messages using URL parameters, I can't see how to send a vCard?


Thanks,


Pete
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4036
Registered: 10-2002
Posted on Wednesday, February 09, 2005 - 10:33 pm:   

Hi Pete,

Our vCard form (which you should be aware only seems to work with Nokia phones, although it is using a standard WAP format) uses JavaScript to do its dirty work.

So to do a direct URL submission, you need to duplicate the functionality of the JavaScript.

That said, it's really not all that difficult.

Do a "view source" on our form, and you can get an idea of what the script is doing.

But I'll also explain it in plain English ...

Basically, we are inserting the name and phone number into the following text string:

BEGIN:VCARD
VERSION:2.1
N:InsertNameHere
TEL;PREF:InsertPhoneNumberHere
END:VCARD

Make sure that there is a carriage return and line feed at the end of each line. (\r\n are the escape codes in the JavaScript.)

Then we are converting the text to a binary string.

For example, the binary coding for the vCard above is:

424547494E3A56434152440D0A56455253494F4E3A322E310D0A4E3A496E736572744E616D65486
72650D0A54454C3B505245463A496E7365727450686F6E654E756D626572486572650D0A454E443
56434152440D0A

42=B
45=E
47=G
49=I
4E=N
etc....

Submit that as the "Data=" parameter. Specify DCS=F5, and specify UDH=06050423F423F4 ...

-bn
Peter Thompson
New member
Username: Ee8prt

Post Number: 17
Registered: 03-2004
Posted on Friday, February 11, 2005 - 05:40 pm:   

Hi Bryce,

Thanks for the advice - just what I need!


Kind Regards,



Pete
Neetha
Unregistered guest
Posted on Monday, March 28, 2005 - 06:17 am:   

Hi Bryce,

I am trying to build PDU's for different EMS content types and sending using the "Binary" option in Now SMS web interface. The problem here is I don't have any tools for building these PDU's. Can you suggest an easy way to do this?

Thanks
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4232
Registered: 10-2002
Posted on Monday, March 28, 2005 - 07:38 pm:   

Hi Neetha,

http://ringtonetools.mikekohn.net/ is a good resource.

For a commercial solution, you may also want to look at http://www.businesms.com/products_ems.html.

-bn
Anonymous
 
Posted on Wednesday, April 06, 2005 - 01:01 pm:   

Hello,

I have just purchased a D500 t-mobile phone and I have spoken with T-mobile who have checked all the settings for me! The MMS service is sill being denied and Im not sure what to do!!