Follow a business letter format. Use the official business letter format when writing your letter.
Think carefully before saying yes. Only say you will write the recommendation if you can recommend the person without reservation. If you're asked to write a reference and don't feel comfortable giving one, it's appropriate to politely decline the request for a reference.