Arg81
Well-known member
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?
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?