Short but sweet (apparently, yes, this is a real resignation-letter):
Dear PT.
Last night in bed, your wife told me you'd found out about our affair and were going to fire me today. You've not been getting much satisfaction recently, so I won't spoil the trend. This is my letter of resignation.
Don't worry about a reference, I'll tell you now, she's bloody marvellous.