473,728 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

reading email from exchange server 2003

I have a requirement whereby I need to read the contents &attachments of email sent to an account in exchange server2003.
The email details (sender, attachment file names, date, etc) areto be stored into a SQL server 2000 database and the fileattachment( s) are copied to a specified location. Theapplication is to be written using visual studio.net (C#). Exchange server sits on one server, my appliaction will run as aservice on another server. Can anyone give me some advice as tothe best way to go about this ?
Ive read so many articles and im not sure which way would be best(CDO, MAPI,WEBDAV) some code samples would be great and anyresources i could read up on. Im new to this, so any help wouldbe greatly appreciated.

--------------------------------
From: mark wheeler

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>CXQet0lrFUC wqS9oc4FlrQ==</Id>
Nov 16 '05 #1
2 13684
Mark,

I think that the best bet would be for you to use COM interop, and
access the CDO library. It should have all the functionality that you need
(in conjunction with ADO.NET) to perform this operation. MAPI is another
way to go, but I find CDO much easier to use.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"mark wheeler via .NET 247" <an*******@dotn et247.com> wrote in message
news:Oz******** ******@TK2MSFTN GP11.phx.gbl...
I have a requirement whereby I need to read the contents & attachments of
email sent to an account in exchange server 2003.
The email details (sender, attachment file names, date, etc) are to be
stored into a SQL server 2000 database and the file attachment(s) are copied
to a specified location. The application is to be written using visual
studio.net (C#). Exchange server sits on one server, my appliaction will
run as a service on another server. Can anyone give me some advice as to
the best way to go about this ?
Ive read so many articles and im not sure which way would be best (CDO,
MAPI,WEBDAV) some code samples would be great and any resources i could
read up on. Im new to this, so any help would be greatly appreciated.

--------------------------------
From: mark wheeler

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>CXQet0lrFUC wqS9oc4FlrQ==</Id>
Nov 16 '05 #2
Hi Mark

If you know Extended MAPI so you can use MAPI33 library.
www.mapi33.freeservers.com
mark wheeler via .NET 247 <an*******@dotn et247.com> wrote in message news:<Oz******* *******@TK2MSFT NGP11.phx.gbl>. ..
I have a requirement whereby I need to read the contents &
attachments of email sent to an account in exchange server
2003.
The email details (sender, attachment file names, date, etc) are
to be stored into a SQL server 2000 database and the file
attachment(s) are copied to a specified location. The
application is to be written using visual studio.net (C#).
Exchange server sits on one server, my appliaction will run as a
service on another server. Can anyone give me some advice as to
the best way to go about this ?
Ive read so many articles and im not sure which way would be best
(CDO, MAPI,WEBDAV) some code samples would be great and any
resources i could read up on. Im new to this, so any help would
be greatly appreciated.

--------------------------------
From: mark wheeler

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>CXQet0lrFUC wqS9oc4FlrQ==</Id>

Nov 16 '05 #3

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

Similar topics

7
10579
by: jeff | last post by:
Hi. I am trying to read addresses from an Exchange 5.5 Global Address Book from an asp.net page. When the page executes the error "Collaboration Data Objects - ]" is generated. Here is the code: Dim strProfileInfo As String Dim ObjSession As New MAPI.Session
2
4192
by: M Rao | last post by:
I have xml data coming in as a stream from a web service running against exchange server.The attributes for the elements dtstart and dtend, b:dt="dateTime.tz" xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/, are causing trouble. I tried to create schema using xmlspy and I get an error saying name "b:dt" cannot have a namespace prefix. I am new to xml. Can somebody please help with schema. <appointments> <appointment>
11
1856
by: tshad | last post by:
I have a W2003 server running my website and I am trying to set up my pages to send email using System.Web.Mail. I have pages running on this machine using CDONTS that work fine. I am using our exchange server to send the mail but am getting an "Unable to relay" message. But the "From" name is my email address, which is obviously on our exchange server, so there is no relay. The message I get back is:
1
3710
by: Andrew Gomes | last post by:
Does anyone know if there is an alternative to reading Exchange 2003 public folders with WMI? I am using WMI in VB.NET to read a list of public folders on an Exchange 2003 server. My problem is that it is INCREDIBLY slow!!! It seems to reads in chunks from the server with a long delay between "chunks." The other problem is that the server has over 60,000 public folders! (So you can imagine how long this takes!) Is there an...
0
3612
by: rnaimon | last post by:
I found the following information on this site, but I am unable to get it to work. All it brings back is the xml page with no data. I am running a Windows 2003 Server with Exchange 2003 Server. When the code gets to This line.. If objDoc.loadXml(objRequest.ResponseText) Then The results return False and I don't receive any data. Does anyone know what the problem may be? Re: ASP: Exchange 2003 Free/Busy Lookup ...
0
966
by: =?Utf-8?B?ZGJhY2g=?= | last post by:
I was getting the dreaded “Could not create CDO.Message”. Microsoft advises that CDOEX.DLL should be unregistered (This is a MS 2003 Sharepoint server that relays mail via a 2003 Exchange Server). My asp.net application was working fine until SQL Server 2005 was installed (with all components). I successfully unregistered C:\Program Files\Common Files\Microsoft Shared\CDO\CDOEX.dll from the MS 2003 Sharepoint server and the 'Could not...
0
1274
by: syedi20 | last post by:
Hi, I am doing a program in which I send emails from ASP.net page, the mail server used is exchange server. I am using Redemption COM so that I can send email with voting buttons, Redemption works with MS Outlook. My problem is that when I am doing so locally it is running and exchange server is asking for password (which is exchange server authentication), but when same is deployed at IIS, its not asing for password and login is failing. ...
4
1839
by: John | last post by:
Hi Outlook 2003 connected with exchange server. A user is logged in to the client pc. Is it possible to programmatically get the user's email address that is set on the 'Email Addresses' tab of the exchange server? Thanks
0
1725
by: =?Utf-8?B?TU9QU0M=?= | last post by:
Hi, i'm having a problem and hoping someone can give me some insight. I have Server Enterprise 2008 installed, set to a file server role with FSRM installed. I'm trying to setup where it will notify me when a user is over the limit but it seems to be having a problem. Even to the point of a test msg being sent. I have it pointed to our exchange (2003) server for the smtp server, but when i click "Send Test Email" it locks up for about...
0
8904
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9424
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9277
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
9135
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
8133
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 projectplanning, coding, testing, and deploymentwithout 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
6718
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
4793
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3236
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
3
2161
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.