Dear teacher,
I wrote this letter to you because I've got a really bad headache and a doctor suggested me to rest. I like to inform you that i would be absent 20 October 2014. After that i will go to school normally and try to catch up with everything.
Sincerely yours,