It would depend on the circumstances surrounding the letter. If it is a break up a thank you for the time together and a wish for a fulfilling future would be appropriate. If a friend is move away a hope to see them in the future and an easy transition to their new home will suffice.