Dear {Teacher},
Words cannot express how grateful I am to have had you as my {subject} teacher. More than a teacher, you've become my friend and mentor as well.
Thank you for teaching me to believe in myself and for encouraging me to dream big. I'll take your lessons with me wherever I go. Please keep in touch!
Your student,
{Your Name}