473,756 Members | 7,019 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5817
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*******@nosp am.com> wrote in message
news:Oc******** ******@TK2MSFTN GP12.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.n et>.

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
8150
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 (user) acknowleges to run this applet on his machine). The user has to read the existent user Microsoft Outlook users accounts and to setup another Microsoft Outlook user accont. As I know so far, that the only way is to access from the applet a...
3
1752
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 users (my e-mail account is just a free one among the millions others) to do this. Will those e-mail contain trojan horse programs or virus ? Where can I report the case (I need one concrete e-mail address) to if so ? Thanks!
0
1729
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: chausanwong@yahoo.com.hk (chausan) Newsgroups: microsoft.public.dotnet.general
0
5427
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 oApp As Outlook.Application = New Outlook.Application Dim oNS As Outlook.NameSpace = oApp.GetNamespace("mapi") oNS.Logon(Missing.Value, Missing.Value, False, True) Dim oInbox As Outlook.MAPIFolder =...
2
2610
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 Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
0
2021
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 looooooong error. I can also see, when I add a reference to my project, that the Microsoft.Office.Core and the Outlook References have a yellow exclamation mark. If I remove my reference to the Outlook object model, the code marked with a
2
7303
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 "Array index out of bounds". Microsoft.Office.Interop.Outlook._Application olApp = new Microsoft.Office.Interop.Outlook.ApplicationClass(); Microsoft.Office.Interop.Outlook._NameSpace olNs = olApp.GetNamespace("MAPI");
1
2111
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 'System.NullReferenceException' occurred in ConsoleApplication1.exe,Additional information: Object reference not set to an instance of an object .. Can anybody help me pls.... my code is like this..
1
7571
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 11.0 Object Library (Outlook 2003) COM Object in my application, the custommer must have the outlook 2003 or outlook 2007 on his computer ?
3
11651
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 Dim location As String Dim start As String Dim subject As String
0
9275
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9873
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9713
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.