In this template the contractor is mentioning how good the past experience was with the former line manager. That short introduction is very important, even if the experience was not always very positive.
The template also asks, being careful about privacy concerns, if it is okay with the line manager to share his or her name. That way they can feel like they have full control of the situation. The letter ends with a thank you note.
Here is the template: