[1.7.x] Fixed #22455 -- Documented return values for send_mail and send_mass_mail

Backport of 7cd74fc96ee982acfed7a98e76d4623eabde146d from master.