If you got a letter then presumably there are contact details. You could get someone to ring on your behalf and explain the situation. I reckon, but don't know for sure, that as long as you could get a doctor's note to say that making you do it would be harmful to your mental health you could get excused.