The example looks okay. However, for English-speaking countries, it is recommended to address the surname of the teacher together with salutation rather than plainly calling them "Teacher". For instance,
A) If the student has not yet arrived at school and called the teacher by phone,
"Good morning, Dr./Mr./Mrs./Miss ... I don't feel well today, and thus I would like to take a leave so as to see a doctor/to visit a medical clinic."
B) If the student has already arrived at school, but they got sick during the school and spoke to the teacher for leave,
"Hi, Dr./Mr./Mrs./Miss ... I don't feel well now. I would like to leave now to see a doctor/to visit a medical clinic."
===
I wish you a good day./祝 是日安好。