If you’re using Outlook or something like it, then LOG OUT.
If you’re using Gmail or other online clients, then use one of the programs that lets you block certain websites for a period of time.
There’s even one site you can go to where you choose a charity for a cause that you hate, and every time you give into your temptation, you have to donate to it. LOL