Other domain can have completely different PHP configuration, it can have email sending configured differently etc. Even on the same server
And for sure, it is not a bug, if it works on one site and is not working on another. Try to use some other sending method and see if that would help