Reputation: 3772
I am trying to open mail client using intent. I want the CC and BCC field to be filled. This was working fine until recently I noticed that GMail 4.2 is ignoring my CC and BCC fields. This is working great on Gingerbread though. Here's the code that I'm using.
Intent mailIntent = new Intent(Intent.ACTION_SEND_MULTIPLE);
mailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { "[email protected]", "[email protected]"} );
mailIntent.putExtra(Intent.EXTRA_CC, new String[] { "[email protected]", "[email protected]"});
mailIntent.putExtra(Intent.EXTRA_BCC, new String[] {"[email protected]", "[email protected]"});
mailIntent.setType("text/html");
mailIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(mailIntent);
This does open GMail's Compose screen but the CC field and BCC field are not shown. The more confusing part is, when you send it anyway, it works! It actually sends it to the CC and BCC email ids. It is just the UI that doesn't show up.
Upvotes: 1
Views: 1407
Reputation: 13588
Configure an email in "email app"(not gmail) and test it. That might be bug in gmail app.
Or did u test gmail app by sending a mail(manually) adding cc and bcc?
Upvotes: 2