• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 782
  • Last Modified:

Problem with Web Page Embedded vCard

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
gilroda
Asked:
gilroda
1 Solution
 
crimmcCommented:
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
 
gilrodaAuthor Commented:
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
 
RomModCommented:
The question has been PAQ'd and the 500 points have been refunded.
RomMod
Community Support Moderator
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now