473,412 Members | 2,005 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,412 software developers and data experts.

MAPI in .NET 2.0 without Outlook installed to work with Exchange 2003?

Hi, All:

I am tasked with the following. I need to write a service to monitor an
Exchange mailbox and take action when an email is received, put it in a db,
etc. I do not need to send emails through MAPI, only monitor a folder in
exchange.

Can I use .NET objects to do this or do I absolutely need a 3rd party add-in
such as Outlook Redemption. This has to go on an enterprise production
server, so the server group will fight me hard if I tell them that i need a
3rd party add-in with my service.

Here is the fun part. No outlook on the machine, so I cannot instantiate
Outlook application. And, since it is a service, not user based, no option
for security prompts. I am not sending email through MAPI, only reading the
mailbox with supplied credentials. Is this possible with config laid out
(no outlook / has to run as service / built in .NET objects only)? Any
links / tips to put me in the right direction?

Thanks in advance!
Jun 1 '06 #1
4 3490
Tarren,

What version of Exchange are you working with?

Honestly, I don't see why you would write this as a service, it would
just be a waste of resources (especially all the work trying to tie in the
service with exchange, and getting notifications).

I would check out the Exchange section on the MSDN site, particularly,
the SDK for the version of exchange you are running:

http://msdn.microsoft.com/exchange

If you want to filter email just from the outside world, then you can
create an SMTP event sink which will be called when an email is sent through
SMTP. If you want to monitor internal emails as well, then you need to
create a Store Event Sink, which will be activated whenever an item is
modified in the store (a user's inbox, for example).

It seems that all of these sinks require implementations of COM
interfaces, which is completely possible in .NET, but will take a little
work (and not require a service on your part).

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

"Tarren" <no***********@thankyou.com> wrote in message
news:ue**************@TK2MSFTNGP03.phx.gbl...
Hi, All:

I am tasked with the following. I need to write a service to monitor an
Exchange mailbox and take action when an email is received, put it in a
db, etc. I do not need to send emails through MAPI, only monitor a folder
in exchange.

Can I use .NET objects to do this or do I absolutely need a 3rd party
add-in such as Outlook Redemption. This has to go on an enterprise
production server, so the server group will fight me hard if I tell them
that i need a 3rd party add-in with my service.

Here is the fun part. No outlook on the machine, so I cannot instantiate
Outlook application. And, since it is a service, not user based, no
option for security prompts. I am not sending email through MAPI, only
reading the mailbox with supplied credentials. Is this possible with
config laid out (no outlook / has to run as service / built in .NET
objects only)? Any links / tips to put me in the right direction?

Thanks in advance!

Jun 1 '06 #2
Thank you. I will look into what options are out there.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:Om*************@TK2MSFTNGP05.phx.gbl...
Tarren,

What version of Exchange are you working with?

Honestly, I don't see why you would write this as a service, it would
just be a waste of resources (especially all the work trying to tie in the
service with exchange, and getting notifications).

I would check out the Exchange section on the MSDN site, particularly,
the SDK for the version of exchange you are running:

http://msdn.microsoft.com/exchange

If you want to filter email just from the outside world, then you can
create an SMTP event sink which will be called when an email is sent
through SMTP. If you want to monitor internal emails as well, then you
need to create a Store Event Sink, which will be activated whenever an
item is modified in the store (a user's inbox, for example).

It seems that all of these sinks require implementations of COM
interfaces, which is completely possible in .NET, but will take a little
work (and not require a service on your part).

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

"Tarren" <no***********@thankyou.com> wrote in message
news:ue**************@TK2MSFTNGP03.phx.gbl...
Hi, All:

I am tasked with the following. I need to write a service to monitor an
Exchange mailbox and take action when an email is received, put it in a
db, etc. I do not need to send emails through MAPI, only monitor a
folder in exchange.

Can I use .NET objects to do this or do I absolutely need a 3rd party
add-in such as Outlook Redemption. This has to go on an enterprise
production server, so the server group will fight me hard if I tell them
that i need a 3rd party add-in with my service.

Here is the fun part. No outlook on the machine, so I cannot instantiate
Outlook application. And, since it is a service, not user based, no
option for security prompts. I am not sending email through MAPI, only
reading the mailbox with supplied credentials. Is this possible with
config laid out (no outlook / has to run as service / built in .NET
objects only)? Any links / tips to put me in the right direction?

Thanks in advance!


Jun 1 '06 #3
Tarren wrote:
Hi, All:

I am tasked with the following. I need to write a service to monitor an
Exchange mailbox and take action when an email is received, put it in a db,
etc. I do not need to send emails through MAPI, only monitor a folder in
exchange.

Can I use .NET objects to do this or do I absolutely need a 3rd party add-in
such as Outlook Redemption. This has to go on an enterprise production
server, so the server group will fight me hard if I tell them that i need a
3rd party add-in with my service.

Here is the fun part. No outlook on the machine, so I cannot instantiate
Outlook application. And, since it is a service, not user based, no option
for security prompts. I am not sending email through MAPI, only reading the
mailbox with supplied credentials. Is this possible with config laid out
(no outlook / has to run as service / built in .NET objects only)? Any
links / tips to put me in the right direction?

Thanks in advance!


If you want to do it with .Net, you can just poll the folder with
WebDav. It is pretty simple. If you want me to email you an example
project off list, let me know.

Jim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
You roll an 18 in Dex and see if you
don't end up with a girlfriend
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
JimD
Central FL, USA, Earth, Sol
Jun 2 '06 #4
Thanks, Jim. Ironically enough this, prior to seeing your response this was
the route I discovered by trial and error and exhaustive research. I was
able to do it 100% in .NET namespaces which makes it a lot easier, since I
did not have to use MSXML either. :)

"JimD" <Ji*******@gmail.com> wrote in message
news:_c******************@tornado.tampabay.rr.com. ..
Tarren wrote:
Hi, All:

I am tasked with the following. I need to write a service to monitor an
Exchange mailbox and take action when an email is received, put it in a
db,
etc. I do not need to send emails through MAPI, only monitor a folder in
exchange.

Can I use .NET objects to do this or do I absolutely need a 3rd party
add-in
such as Outlook Redemption. This has to go on an enterprise production
server, so the server group will fight me hard if I tell them that i need
a
3rd party add-in with my service.

Here is the fun part. No outlook on the machine, so I cannot instantiate
Outlook application. And, since it is a service, not user based, no
option
for security prompts. I am not sending email through MAPI, only reading
the
mailbox with supplied credentials. Is this possible with config laid out
(no outlook / has to run as service / built in .NET objects only)? Any
links / tips to put me in the right direction?

Thanks in advance!


If you want to do it with .Net, you can just poll the folder with
WebDav. It is pretty simple. If you want me to email you an example
project off list, let me know.

Jim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
You roll an 18 in Dex and see if you
don't end up with a girlfriend
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
JimD
Central FL, USA, Earth, Sol

Jun 5 '06 #5

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

Similar topics

3
by: Siegfried Heintze | last post by:
Does the Outlook API supersede MAPI? If I implement a SPAM filter using MAPI to automatically delete messages from the message store, will other clients like Eudora benefit? If I implement a...
2
by: Adam Kinney | last post by:
I have an ASP application that logs into Exchange server to send email. The code looks like this: Set objSession = CreateObject("MAPI.Session") objSession.Logon "profileName" strMsg = ".."...
4
by: Kurt | last post by:
Hi I am using CDO 1.21 from C# in order to iterate through the entries in a users outlook address book (as OOM was too slow). Basically I take the Name field from each "message" and insert it into...
5
by: eadams | last post by:
I've been tasked with writing an application in VB.Net that will manipulate messages in a user's Inbox. My Exchange admin prefers that I use MAPI; I don't really care, but I want this to be as...
0
by: DC Fan | last post by:
I am wirting an application in Access 2002 (XP) that needs to send email. Since I hate the dialog boxes you get from all the Outlook warning messages, I am trying to use the MAPI object. On *SOME*...
8
by: Philip Wagenaar | last post by:
I need Interop.MAPI.dll for a project, but where can I find this file?
3
by: Siv | last post by:
Hi, A little while ago I wrote a small program that allowed the user to view products from a database. The database holds the details of the products which can be viewed via a form and...
4
by: Brian Hampson | last post by:
I recently upgraded to Outlook 2007 B2TR and have found that I can no longer code against MAPI.DLL It's gone :( Using C#, I used to get the MAPI session, and from that I could change the out of...
1
by: Danny | last post by:
Hi Am trying to send emails via simple mapi. The application will be running on a machine which has outlook 2003 installed. My test app works but the file email is placed in the outbox within...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
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,...
0
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.