-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: LoguK
Message 3 in Discussion

There are 2 ways you can do this 1. All Mail Servers generate NDR[Non-Delivery Report] 
whenever the server is unable to send the mail out.
Exchange also does this, and you have an option to send a copy to 
administrator/postmaster or to anyother person. 
you can set this under    Exchange Manager->Servers->
{default}SMTP Server->Properties->Messages[Tab]   Now all the NDR's generated at one 
mailbox, now you can query this mailbox to get all the NDR's at one shot, 
without having to iterate thro' all the mailboxes.   2. You need to individually 
iterate on all the mailboxes.
This is not advisable,  
a. because by default, nobody has permissions to see other's inbox on exchange 
server[even admin, unless configured]
this implies, you need a exchange admin user to login to each mail box to get the 
mails.
 b. If the users are using POP, and they don't store a copy on server, there is no way 
you can get this info. sometimes you may miss,     Now, you need to adapt to some data 
accessing methods to talk to the exchange server,
this highly depends on where your Windows Service is running, if your service runs on 
the same box
as that of the exchange server, you are lucky, you can use CDO, ExOleDB[Select * from 
inbox ;-)] 
but, if your service is running on other machines, you are left with only one option 
WEBDAV.   but believe it or not, WebDAV is the cool and easiest thing you can do if 
you learn it well.
[Note: webDAV can also be used if the service is on the same box]   all you have to do 
is open an XMLHTTP Connection and send a formatted XML DOM, and the response you get 
from exchange is your answwer to your 
query again in XMLDOM. This leaves us to n number of implemenration.     you might 
need to get your hands dirty on Exchange SDK... check at msdn.microsoft.com/exchange   
-- Logu

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to