That's right!
The big server websites allow you to put in your minecraft name when you vote. Dont ask me how but it then sends that information to the minecraft server which i guess can then be used to execute commands to allow 1 present to be opened by the player. I dont know how it works fully but thats essentially it.