"Hope you're well and enjoying the summer.
It was really nice to see you on the Graduation day. I hope you had a good time.
I just wanted to send you a quick email to thank you for all your help over the years. It was pleasant being taught by you. I believe you are an excellent teacher and you have inspired most of us. I really appreciate all your hard work and effort.
Once again thank you sir."