How can I limit email intents to only Gmail or email apps?

I launch an email intent that shows many options (e.g., SMS, social apps). How can I change it to display only email/Gmail apps?

Intent mailIntent = new Intent(Intent.ACTION_SENDTO);
mailIntent.setData(Uri.parse("mailto:"));
mailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{"[email protected]"});
mailIntent.putExtra(Intent.EXTRA_SUBJECT, "Hello");
mailIntent.putExtra(Intent.EXTRA_TEXT, "Email body content");
try {
    startActivity(mailIntent);
} catch (Exception error) {
    Toast.makeText(CurrentActivity.this, "No email client found.", Toast.LENGTH_SHORT).show();
}

I have encountered this issue before and found that there is no completely foolproof method to restrict the chooser to only email apps. In my experience, even if you set the data as mailto:, different devices and OEM customizations may still show additional apps that can handle the intent. A workaround I’ve used is to programmatically check for installed email apps and then build a custom chooser using specific package names, but this approach is quite cumbersome and may not cover every scenario. Ultimately, it may be best to guide users to set a default email app within their device settings.