Answer:
Hi Mr/Ms (Teachers Name.)
I was absent because of (Reason of Absence)
I apologize for not attending class today, but I could not miss out on this, I will make sure to get all my late work done, and try not to have many absences as the year goes by, I am sorry for the inconvenience.
Thank you,
(Your Name.)