CDONTS email question - where do rejected emails go?

  • Thread starter Thread starter Eric
  • Start date Start date
E

Eric

I've got a vb.net application that attaches an outgoing file and
emails it to a destination. I use my email address as the From. The
application runs on my desktop machine. It is not web-based and is
using CDONTS.

We have an Exchange 5.5 server and I'm running Outlook 2000 on my
desktop.

1. I was wondering where to look to see if the email I created was
returned? It's not showing up in my email account when I open Outlook
on my desktop.

2. Is there any way to have any returned messages show up within
Outlook?

3. If I cannot view the messages within my Outlook, how can I best
seach/find them (in code) on the Exchange Server?

4. Are there better alternatives then using CDONTS. Again, this is not
Web-based, it's running on my desktop.

Thanks,
Eric
 
1. I was wondering where to look to see if the email I created was
returned? It's not showing up in my email account when I open Outlook
on my desktop.

Check that the "From" property is correctly set to your address.
2. Is there any way to have any returned messages show up within
Outlook?

Under the normal behaviour of Exchange Server, it should return the message
to you as an undeliverable.
3. If I cannot view the messages within my Outlook, how can I best
seach/find them (in code) on the Exchange Server?

There really isn't a way for you to do that. The message store can't easily
be mined by even an administrator at that granular a level.
4. Are there better alternatives then using CDONTS. Again, this is not
Web-based, it's running on my desktop.

It sounds like you would do well to use Outlook's programming object model
(although to do so, you'd have to disable much of its security.) There is a
COM type library listed in the COM tab when you click on "Add references" in
Visual Studio, the "Microsoft Outlook x.00 Object Library." Any mail sent
this way would appear in your "Sent" items folder in Outlook.
 
Back
Top