Can ASP page create an appointment in Microsoft Outlook on local machine?

MitaJain
MitaJain used Ask the Experts™
on
I have an ASP page on which the user can check some items from a list which then need to be sent to the user's Outlook calendar as appointments. Can it be done? If yes, how? Does the server need to have Exchange 2000 running on it?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
Three methods;
1:
You don't have to have Exchange on the web server, but you must be able to open the MAPI.Session object (which requires the install of the Exchange client) and the web process must be ran under the context of a user with the permissions to access the required mailbox.  You can then open the Appointment folder:
   Set fld = objSession.getDefaultFolder(olCalendar)
You'll have to find the numeric value of the correct enumeration of the FolderTypes for the Calendar.  
After getting a reference to the calendar folder, you simply add a message and go from there.
    set newAppointment = fld.Messages.Add()

2:
The user's Outlook must be set to auto-accept invitations in this method and we're still required to have the ability to open (at least) a local mapi session for a valid Exchange user (could be a generic account setup to handle the process).
You get a reference to the folder and create a new appointment (as shown above), but then you "invite" the required user to the appointment and call the "Send" method.

3.
The final method requires that the user's browser "trust" the website for security purposes.  In this method, you simply instantiate Outlook on the users machine and do your appointment setting locally.
Dim objOutlook
set objOutlook = CreateObject("Outlook.Application")

and so on and so forth...
Top Expert 2013

Commented:
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
   In the absence of responses, I may recommend DELETE unless it is clear
   to me that it has value as a PAQ.  Silence = you don't care
</note>

Cd&

Commented:
i thought that my answer was relatively complete.  Why waste it?  PAQ it away...
Top Expert 2013

Commented:
It is time to clean this abandoned question up.  

I am putting it on a clean up list for CS.

<recommendation>
points to graver

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial