MAIL_STATUS returns SUCCESS, even if the sendmail binary or an alias to it doesn't exist on the system, and therefore the message can't be sent. That seems like something that should definitely be detected, and an error code returned instead on failure.
You must be