Greetings/Good morning/Good afternoon/Good riddance/ Hello
(dont actually tell your teacher good riddance that was a joke)
I wanted to let you know I wasn't able to complete my test yesterday because/ due to the fact that I was sick, but I would be more than happy to get it done now or whenever is reasonable. Thank you yada yada yada, name yada yada yada.
I hope this helps