Sending Email Through Exchange With Framework 2.0

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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.
 
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
 
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.
 
Back
Top