"Dear (Teacher's name),
I apologize for not being in class lately, but I promise it was for a reason. I was sick with the flu this past while, and I couldn't go to school because of it.
Thank you and I will seen you soon.
That's just the gist of it. I hope that helps!