Yes, the mail() works perfectly for the ISP that does NOT require password authorization.
For the ISP that requires password authorization, it is not possible to log into the server. It does not get as far as 'bounced mail'.
Again, this password authorization requirement was confirmed by the ISP.