I am trying to use an intent to send an email from my application but the To field of the email will not populate. If I add code to fill in the subject or text, they work fine.
This is what works for me:
val email = "recipient@email.com" val intent = Intent(Intent.ACTION_SENDTO) intent.data = Uri.parse("mailto:$email") intent.putExtra(Intent.EXTRA_SUBJECT,"My Subject") startActivity(intent)