Skip to content

Instantly share code, notes, and snippets.

@bramvonk
bramvonk / ThisOutlookSession.bas
Last active April 17, 2020 10:37
Prevent emailing from the wrong account in outlook
Option Explicit
'I have a VERY specific use case. I have 2 accounts in my outlook: one of my employee, and one of a company I'm consulting at.
'I want to make sure to prevent sending emails from the consulting company's email address, when I should have used my own employee's.
'Most mails using the consulting company's email address are internal, so I could create this simple filter which catches 99% of my
'errors without annoying me too much.
Private Const ConsultingMailAccount As String = "bram.vonk@consultingcompany.com"
Private Const ConsultingMailOkAddressesLike = "*@consultingcompany.*"

Keybase proof

I hereby claim:

  • I am bramvonk on github.
  • I am bramvonk (https://keybase.io/bramvonk) on keybase.
  • I have a public key ASC-WDO6MnVfxOalMFRrKdDGn484VbdQLLENvJzwtjujnwo

To claim this, I am signing this object: