Home All Groups Group Topic Archive Search About

Sending Email Through Exchange With Framework 2.0

Author
9 Jun 2006 10:51 PM
DORIS
I have a web app in C# 2.0 that needs to send email through exchange. I can't
use SMTP because I need to keep a history of what is sent. I used MAPI in the
past with 1.1 will that still work or is there a better way?

Author
11 Jun 2006 12:50 PM
Christopher Reed
You should be able to use either MAPI or perhaps Outlook through their
respective COM objects, but this will require a good working knowledge of
the COM functionality for either.

An alternative would be to use System.Net.Mail as is and develop an event
log on your SMTP server to track each email sent by your applications.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

Show quote
"DORIS" <DO***@discussions.microsoft.com> wrote in message
news:57B83CC3-D526-4F53-AF65-6F027934103F@microsoft.com...
>I have a web app in C# 2.0 that needs to send email through exchange. I
>can't
> use SMTP because I need to keep a history of what is sent. I used MAPI in
> the
> past with 1.1 will that still work or is there a better way?
Author
11 Jun 2006 5:47 PM
Michael D. Ober
If you control your exchange server, configure it for Message Journalling
(use envelope journalling to get an exact list of who received each message)
and then continue using System.Net.Mail.  This will have the byproduct of
catching all emails going through your exchange server.

Mike Ober.

Show quote
"Christopher Reed" <carttu@nospam.nospam> wrote in message
news:uP8$vVVjGHA.4660@TK2MSFTNGP03.phx.gbl...
> You should be able to use either MAPI or perhaps Outlook through their
> respective COM objects, but this will require a good working knowledge of
> the COM functionality for either.
>
> An alternative would be to use System.Net.Mail as is and develop an event
> log on your SMTP server to track each email sent by your applications.
> --
> Christopher A. Reed
> "The oxen are slow, but the earth is patient."
>
> "DORIS" <DO***@discussions.microsoft.com> wrote in message
> news:57B83CC3-D526-4F53-AF65-6F027934103F@microsoft.com...
> >I have a web app in C# 2.0 that needs to send email through exchange. I
> >can't
> > use SMTP because I need to keep a history of what is sent. I used MAPI
in
> > the
> > past with 1.1 will that still work or is there a better way?
>
>
>
Author
11 Jun 2006 4:14 PM
Tomer Gabel
Simple answer: the same code should work with no (or minor) modification
under 2.0.
Less simple answer: do you require a history in the sense of a "sent items"
folder, or just an activity log? If the latter, it might be more sensible to
use SMTP and come up with a custom logging solution.

Regards,
Tomer

Show quote
"DORIS" <DO***@discussions.microsoft.com> wrote in message
news:57B83CC3-D526-4F53-AF65-6F027934103F@microsoft.com...
>I have a web app in C# 2.0 that needs to send email through exchange. I
>can't
> use SMTP because I need to keep a history of what is sent. I used MAPI in
> the
> past with 1.1 will that still work or is there a better way?

AddThis Social Bookmark Button