First of all, you have to
create new MailItem[
^], then you'll be able to
send an email[
^]. But if you want to catch "sending" event, you're on the right track. Unfortunatelly, you did not provide enough information about "do-not-send-to-these-recipients" list: where and how it was defined. If you would like to check if any recipient email address is equal to "
bad@address.com
", a code look pretty good, but needs small changes:
Obtain the E-mail Address of a Recipient[
^]