Use `command -v` to determine whether sendmail is available and not `file_exists`.