?
Solved

Problem with Web Page Embedded vCard

Posted on 2005-03-31
4
Medium Priority
?
778 Views
Last Modified: 2010-07-27
I want to allow visitors to a website to download vcard contact information directly into MS Outlook.

I have created  a contact in Outlook and exported it as a .vcf file to a folder in my website called 'vcard'.  The folder has been uploaded to the server.  I have a link on a page to that vcard/.vcf file.  

Here's the problem, when I or anyone else click on the webpage link to download the vCard, what displays is a text file, which is not supposed to happen:

BEGIN:VCARD VERSION:2.1 N:Gram;Chresten;(Chris) J. FN:xxx J. Gram ORG:Bateman Seidel Miner Blomgren Chellis & Gram, P.C. TITLE:Shareholder TEL;WORK;VOICE:(503) 972-xxxx TEL;WORK;FAX:(503) 972-xxxx ADR;WORK:;;888 SW Fifth Avenue, Suite 1150;Portland;OR;97204;United States of America LABEL;WORK;ENCODING=QUOTED-PRINTABLE:888 SW Fifth Avenue, Suite 1150=0D=0APortland, OR 97204=0D=0AUnited States o= f America URL;WORK:http://www.batemanseidel.com EMAIL;PREF;INTERNET:xxxx@BatemanSeidel.com REV:20050312T203734Z END:VCARD

When I test it locally it works fine.

Any thoughts?  

Thanks in advance.
0
Comment
Question by:gilroda
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Expert Comment

by:crimmc
ID: 13675525
Hi,

  I have saved a contact as vcs file and added in a html file, but as link not as the text "BEGIN:...." and when I click on the link the contact is opened.

  Html file:
  <html>
<head>
<body>
<a href="Test User.vcf">here</a>
</body>
</head>
</html>


Regards,
Cristian
0
 

Author Comment

by:gilroda
ID: 13676038
I've done some further research and it turns out that since the site is hosted on a Unix server I need to place a vCard mime type declaration in an .htaccess file in order for the vCard to download properly from the website

For example, open Notepad and insert the following text:

AddType text/v-vCard vcf

Save the file as .htaccess and upload to your directory.
0
 

Accepted Solution

by:
RomMod earned 0 total points
ID: 13727245
The question has been PAQ'd and the 500 points have been refunded.
RomMod
Community Support Moderator
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It's here again; Microsoft is launching a new version of Internet Explorer: Internet Explorer 9, with noticeable changes on its interface, functions and new tools. As they say on its promotional video: "It's time to play, on a more beautiful web", f…
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question