472,782 Members | 2,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,782 software developers and data experts.

ASP .NET and Microsoft Outlook

Is it possible for me to generate Outlook objects in an ASP.NET application
on a web server (like a calander event for example) and then attach that
object to an email so that the recipient can open it and add a calander
event to THEIR Outlook file? I already know how to send mail using the
SmtpMail object.

If it is possible, how difficult is it? And are there any good examples,
tutorials, or books that could point me in this direction using VB.NET?
Thanks,

James
Nov 17 '05 #1
2 5752
Hi James,

If you are only interested in Calendar items (I'd refrain from calling it a
Calendar event because uh, the industry reuses jargon over and over again),
you don't need Outlook or the Outlook object model. All you need to do is to
construct a VCAL file which is a plain text file - search MSDN or google....

Hope This Helps
Ananda

"James" <ca*******@nospam.com> wrote in message
news:Oc**************@TK2MSFTNGP12.phx.gbl...
Is it possible for me to generate Outlook objects in an ASP.NET application on a web server (like a calander event for example) and then attach that
object to an email so that the recipient can open it and add a calander
event to THEIR Outlook file? I already know how to send mail using the
SmtpMail object.

If it is possible, how difficult is it? And are there any good examples,
tutorials, or books that could point me in this direction using VB.NET?
Thanks,

James

Nov 17 '05 #2
Hi James,

Thanks for your post. I'd like to share the following information with you:

Creating an Appointment/Meeting Request from ASP.NET can be done but how
you do it will depend on the type of environment you are using.

First, the Outlook Object Model is not supported for use unattended or from
a service, so the Outlook Object Model is not suitable to run from an
ASP.NET page. For more information see the following article:

Q237913 INFO: Outlook Object Model Unsuitable to Run in Windows Service
http://support.microsoft.com/support.../q237/9/13.asp

If you want the code to run on an ASP.NET Web Server, you should review the
following article about the supported Messaging APIs with the .NET
Framework and make a decision based on your environment.

Support Policy for Microsoft Exchange APIs with .NET Framework
http://support.microsoft.com/?id=813349

For example, if your users are working against an Exchange 2000 server you
can use WebDAV to create Appointments directly in Calendar folders or to
send meeting requests. Here is an article with some sample WebDAV code:

308373 HOWTO: Send a Meeting Request Using WebDAV
http://support.microsoft.com/?id=308373

If you are not using an Exchange Server then users will typically have
their Calendars stored in local Personal Folder files (.pst) and you will
not be able to access these folders directly from a Web Server (or any
other machine). In this type of scenario you could generate a mail message
using System.Web.Mail (based on the previous code sample posted to this
thread) and attach and iCalendar (.ics) file with the meeting information.
iCalendar information can be sent in a text file attachment. For testing,
you can create an iCalendar item in Outlook by selecting an Appointment in
your Calendar and then choosing "Forward as iCalendar" from the Actions
menu. You can then open the attached ".ics" file in a text editor like
Notepad to see the iCalendar information. To get more information about the
iCalendar Internet Standard you can search the web for "RFC" and
"iCalendar". For example, here is a "Request For Comment" (RFC) link I
found for the iCalendar format: <http://rfc-2445.rfcindex.net>.

By the way, there are no supported .NET APIs for working with Exchange
Server 5.5 data, so you could use CDO 1.21 in a classic ASP page to create
Appointments. There is no server-side API either that is supported for
creating Task items. The only supported API for creating Outlook Task items
is the Outlook Object Model.

Please feel free to let me know if you have any problems or concerns.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Daniel Pope | last post by:
Hello Everybody, I'm preparing for doing a daunting task: to access Out look Microsoft Outlook Express(regardles the operating system and Outlook version) from a Java applet (after the client...
3
by: chausan | last post by:
Hi, In these 2 days I received many e-mail requesting me for doing upgrade with various microsoft components (examples below). But from what I know microsoft will generally not asking normal...
0
by: chausan | last post by:
Update ++++++ All attchment scanned with norton anti-virus w/ yahoo mail service and they all reported infected with virus Worm.Automat.AHB. ======================================== From:...
0
by: Job Lot | last post by:
I am retrieving message from the Inbox as follows: (MS Article ID 310258: How to use the Microsoft Outlook Object Library to retrieve a message from the Inbox by using Visual C# .NET) Try Dim...
2
by: Miguel Arenas | last post by:
I want to develop a aplication with VB.2003 and Microsoft outlook 2003. I have this code. Imports OutLook = Microsoft.Office.Interop.Outlook Imports System.Reflection Private Sub...
0
by: Mads Westen | last post by:
Hi, I'm trying to code a application that can create a new email in Outlook I have coded my project in VS 2003, but now I have upgraded to VS 2005. I can not build my project anymore, I get a...
2
by: JC | last post by:
Anybody knows what problem has this code? I think, in the Garbage Collector? You know the Solution? The program in the test's case, whit 350 contacts, run OK before number 86. The error is a...
1
by: mary mathews | last post by:
Hi, I'm getting an exception while tried to retrive an outlook contact using asp.net in a console application. The exception is as follows: An unhandled exception of type...
1
by: Sylfelin | last post by:
Hello, If I use Microsoft Outlook 12.0 Object Library (Outlook 2007) COM Object in my application, the custommer must have the outlook 2007 on his computer ? But if i use Microsoft Outlook...
3
OuTCasT
by: OuTCasT | last post by:
Hi I have created an asp.net project that exports items from datagridview to and outlook calendar This is the code that i have used.. Dim body As String Dim ends As String ...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.