Praise be to Allah.
There is nothing wrong with that, and it is acceptable in sha Allah. But paying it in the place where you are is better, and if you were to give it in the place where you are staying to some of the poor people there, that is more appropriate. But if you sent it to your family to give it to the poor, there is nothing wrong with that. End quote.