Solved

Creating an outlook-contact using asp.

Posted on 2001-06-24
2
254 Views
Last Modified: 2006-11-17
Hello,

I want to write a script sending an Outlook-Contact (.msg) I create online to a specific e-mail using asp.

I don't want to get a contact from my outlook...I want to create it using ContactItem (or other way) and fill it with data stored in my database.

          10x,
                MotiN.

0
Comment
Question by:MotiN
2 Comments
 
LVL 7

Accepted Solution

by:
CJCraft earned 100 total points
ID: 6222832
This isn't too hard to do at all. But instead of using .msg, I recommend you use vCard .vcf files. This is an open standard that is fully support by Microsoft and most other major vendors. Vcf files are to msg, what htm files are to doc files.

You can save a contact as a vCard vcf format file from inside outlook and then just open it up in Notepad and see how simple it really is. It is not much more than a bunch of name value tag pairs.

Here is a simple sample to give you an idea what is inside a vcf file:

BEGIN:VCARD
FN:Mr. John Q Public
HOME ADDRESS:123 Main Street
WORK ADDRESS:456 Main Street
EMAIL;Internet:jqpublic@domain.com
URL:http://www.jqpublic.com/
REVISION:20010614T075119
VERSION:2.1
END:VCARD

See, nothing to it really. Just make an example contact in outlook that has the options you want and save it as a vcf, and then open it and check out the tags and you can make your own template from there that you will fill in from your database.

You can also go to the Internet Mail Consortium's Web site at http://www.imc.org/ and see the full standard.

I got off the ground with vcf by reading this article:

http://gethelp.devx.com/techtips/asp_pro/10min/10min0201/10min0201.asp

And I use vCard vcf files and vCalendar files on my site at http://www.cjcraft.com/ in the Code Wizards section.

You shouldn't have too much difficulty putting together your application after a quick look through of the above sites.

I hope that helps you,
Chris Craft
0
 

Author Comment

by:MotiN
ID: 6288843
Thanks...you right, it's good enough...   :)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now