1
emailIntent.putExtra(android.content.Intent.EXTRA_BCC,
               new String[] {"postcards@in-touchmobile.com"});

I have tried with this code, but bcc can not include in my gmail application.

My full code is

Intent emailIntent = new Intent(
                            android.content.Intent.ACTION_SEND_MULTIPLE);
                    emailIntent.setType("text/plain");
                    emailIntent.putExtra(
                            Intent.EXTRA_EMAIL,
                            new String[] { Constants.EMAIL });
                    emailIntent.putExtra(
                            android.content.Intent.EXTRA_TEXT,
                            Html.fromHtml(str));
                    emailIntent.putExtra(
                            android.content.Intent.EXTRA_BCC,
                            new String[] { "postcards@in-touchmobile.com" });
                    emailIntent.putExtra(
                            android.content.Intent.EXTRA_SUBJECT,
                            Constants.Subject);

                    ArrayList<Uri> uris = new ArrayList<Uri>();
                    uris.add(screenshotUri);
                    emailIntent.putParcelableArrayListExtra(
                            Intent.EXTRA_STREAM,
                            uris);
                    startActivity(emailIntent);
                    startActivity(emailIntent);

I have changed my code like above one..but still not working..

Komal Sorathiya
  • 228
  • 1
  • 9
  • please make sure that wherever you are setting and sending string data for sake of consistence use .toString() method. in yours code emailIntent.setType("image/png"); is there are you sending images? please set emailIntent.setType("text/html"); as well and have a try – Jitesh Upadhyay Jan 07 '14 at 05:26

2 Answers2

0

change the type of Intent from image/png and application/octet-stream to plain/text like

  emainIntent.setType("plain/text");

and for attaching files to email see here

Community
  • 1
  • 1
Gopal Gopi
  • 11,101
  • 1
  • 30
  • 43
0

Try in this manner

Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); 
emailIntent.setType("application/image");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{strEmail}); 
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"Test Subject"); 
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "From My App"); 
emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///mnt/sdcard/Myimage.jpeg"));
startActivity(Intent.createChooser(emailIntent, "Send mail..."));

Must do this thing emailIntent.setType("application/image");

Checked and let me know

Satyaki Mukherjee
  • 2,857
  • 1
  • 22
  • 26