Dear [Manager's Name],
As of today, I, John, in the IT department, am tendering my resignation. It seems the coffee machine has been on the fritz for the last time.
I'm off to find a job with a company that doesn't make me question my sanity with each passing day.
Cheers, John