Solved

Creating an outlook-contact using asp.

Posted on 2001-06-24
2
258 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
[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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cannot open file from ASP if user is "logged in" 13 40
html Uncheck Checkbox 2 38
Filktering Alphabetically 8 46
SQL Query Returns Records in SSMS but not Classic ASP 5 47
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

734 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