Reputation: 1
I'm pre-filling an email which should launch in the users default email app but for some reason the CC line isn't populating with it's intended string. Any Idea what's going on?
Intent toSupportIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:" + getString(R.string.support_email)));
toSupportIntent.putExtra(Intent.EXTRA_CC, getString(R.string.cc_support_email));
toSupportIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.support_email_subject));
toSupportIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.support_email_message));
startActivity(toSupportIntent);
Upvotes: 0
Views: 348
Reputation: 1006849
ACTION_SENDTO
is not documented to support EXTRA_CC
. Hence, you should not be surprised when it does not work with all apps.
Upvotes: 1