Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating a vcard

Status
Not open for further replies.

FALCONSEYE

Programmer
Jul 30, 2004
1,158
US
I am trying to create a vcard and attach it to an email. If i run save this on a vcard.cfm


<cfcontent type="text/x-vCard">
<cfheader name="Content-Disposition" value="inline; filename=newAppointment.vcd">
BEGIN:VCARD
VERSION:3.0
N;charset=iso-8859-1:FALCONSEYE
BDAY;value=date:1973-04-26
EMAIL;type=HOME:falconseye@jetansolutions.com
URL;type=HOME:TITLE;charset=iso-8859-1:Software Engineer
ORG;charset=iso-8859-1:JETAN Solutions
ADR;type=WORK;charset=iso-8859-1:;;123 Ocean Drive;Pasadena;CA;91125;USA
TEL;type=WORK:1 111 111 1112
URL;type=WORK:END:VCARD

and hit the url, i am able to see the vCard. So, does anyone know how to send this via attacment?
thanks

 
I have a question relating to VCards and wondered if you might be able to help - I can't find an answer anywhere on the net. I'm outputting VCards from CF just like you do with the example above. Outlook for the PC won't recognise them as VCards whilst programs on my MAC have no problem importing them.

I tried your code above and outputted exactly what you have - the same problem applies. MAC great, PC no. When opened in Notepad I see that linebreaks are replaced by rectangles and therefore the formatting problem.

Is this a known problem? something you've come across? Any words of wisdom would be greatly appreciated...!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top