The best way to write a letter of recommendation is to start out with a formal greeting, or using "To whom it may concern" if you don’t know the recipient. Follow the greeting with 2-3 sentences of praise for the person you’re recommending.
The most effective letters of recommendation are written by professors or work supervisors who know you well enough to describe your academic, personal, or professional achievements and potential with candor, detail, and objectivity. Letters that compare you to your academic peers are often the most useful. Most schools do not consider general, unreservedly praiseworthy letters helpful.