I want to send an official email to my professor to thank him for writing a recommendation letter…

I want to send an official email to my professor to thank him for writing a recommendation letter and ask him to edit my name as he wrote it wrong.