We are looking into creating a vCard for everyone following a template that uses the company standard guidelines for font types, sizes and colors, uploading to a website and inserting a images with a link on it in the signatures so people can download and save the vCard if they want. A lot of companies block vCards as attachment (*.vcf files) so adding it by default is in my opinion not the "cleanest" option.

vCards are plain text and therefore can be created with a simple script that uses the writeline function and add data from let’s say AD to get the user specific stuff. We use the Word com object to create the signatures and below is part of the script that adds a picture and sets a hyperlink on it.

Word/Outlook 2003:
 Code:
...
$objShape = $objSelection.InlineShapes.AddPicture(@LDRIVE +  "\tools\Images\vcard.gif")
$objLink = $objDoc.Hyperlinks.Add($objShape, "http://www.website.com/user.vcf")
...


Word/Outlook 2007
 Code:
...
$objShape = $objSelection.InlineShapes.AddPicture(@LDRIVE +  "\tools\Images\vcard.gif")
$objLink = $objDoc.Hyperlinks.Add($objShape, "http://www.website.com/username.vcf",,, "Download my contact data as a vCard")
...


Edited by Mart (2010-10-14 09:14 AM)
Edit Reason: Typo in the code. Thanks Arend.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.