If you want to send a formal thank you note, you can always send it by typing it. But if you want to add some personal touch to the note and make it memorable for your teacher, you must write it by hand because handwritten notes are adorable. Your teacher can easily connect with the handwritten note.