I use 2 email accounts with Outlook. One for work, one for personal.
The problem I have is I am forever sending work emails from my personal account!
How do I set up a list of "do not send email to these addresses if sent from a specific account" ?
Best Answer
I've seen variations of this question before, but can't find any now so figured I'd ask and answer it.
I wrote this VBa to resolve the issue! Now when I click send, if I'm not sending from a specific account it will look through the 'send to list' and then prompt me to either cancel or continue. This means it's wonderfully non-invasive! If I click cancel (do not send), the email remains open and unchanged.
Open the developer ribbon, open Visual Basic. Open the 'ThisOutlookSession' and paste in the following code
Since I only want to send to the domains from my work account, if I try to send from any other, I get:
Otherwise, it will just send as normal.
The above code will check every outgoing email address! This means it will check the To, CC and BCC... As soon as it finds a single recipient which matches, it will then show the Prompt asking if you want to send or not.