Dear Mr/Mrs/Ms XXX(teacher):
I am writing this letter to ask for your pardon for my absence in your class.
Thank you for your understanding and I do appreciate ir very much. I will make every effort in making up what I may miss from your lesson.
Yours
XXX