Any textbook will give you the formal parts of a letter. You need to fill in the details that only you know. For example, who is to receive the letter, how much do you want to tell them about your reasons for leaving, how long an introduction to the new person do you want to make, etc.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.