The correct way is as in your sentences.
When the indirect object (me, them) comes first, there is no "to". 2 and 4
When the indirect object comes after the direct object, there is a "to" before the indirect object (to me, to them). 1 and 3
- For Teachers