473,406 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 5787
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.