Email through Outlook - recipients

Arg81

Well-known member
Joined
Mar 11, 2005
Messages
949
Location
Midlands, UK
Programming Experience
1-3
On various forms, I have my program email users based on the names displayed in 4 combo boxes.

Now... If a user leaves we hide their mailbox on Exchange. In doing so my app won't email them (it matches the name in the combobox to a name in the Global Address List).

What I want to be able to do, if possible (which looking at it doesn't seem to be), is that the email is still sent even if a name is not matched.

At the moment the code is in a "Try / Catch" block, and obviously if a user isn't matched I get;

"Recipient not found", and then the email isn't actually sent. I want it to still send to the other names in the comboboxes, even if any of them can't match. I then want to be able to put a message on saying;

"user x was not emailed as they aren't in the company anymore. Other contacts have been emailed"


Is this at all possible?
 
why don't u use a WHILE loop to send the email one by one? and use a TRY CATCH to test whether the email is actually sent.
 
Back
Top