I'm in the process of applying to a PhD program right now. One of the professors I asked for a recommendation letter has already submitted an official letter which goes into my (online) application packet. But she said she was going to write another one addressed directly to one of the professors she knows in the program. So this is how referrals work and why it is important to choose the right person as your reference.