Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve the reply codes of undelivered emails using VB6/Exchange

Status
Not open for further replies.

vtops

IS-IT--Management
Oct 13, 2005
63
GR
Hi,

I'm using Visual Basic 6 and I'm trying to read undelivered messages
from a Microsoft Exchange 2000 server.


I have used MAPI, however when I read an undelivered email, I don't
know where I can find the reply code, e.g. 515, 504 etc., in order to
identify why the specific mail couldn't be delivered.


Does anyone knows how can I retrieve the reply codes for undelivered
emails?


Is it possible to access directly the Exchange server without using an
email client, such as Microsoft Outlook, Outlook Express etc., at all?


Thanx
 
I haven't done this in a LONG time, but it is possible. Google "Visual Basic Exchange Sink". A Sink is a programmable hook into the exchange database. If I'm remembering correctly (and I remember when they invented dirt, so I may be mistaken) you would use the sink to grab the data, then throw it out to a database/log file/winsock socket and then process the information that way. You can also use another sink that can be used to resubmit e-mails for various reasons.

The most popular sink that's out there is grabbing an e-mail and adding a statement at the botttom of every e-mail that leaves a company.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top