I tried it all a million times - made it work, but had an unpleasant warning. Found an Android error. There is a fix and additional information:
https://code.google.com/p/android/issues/detail?id=38303 Error: ClassCastException warning in log when opening e-mail app with a body and multiple file attachments.
Update: A workaround was found. Instead
sendIntent.putExtra(Intent.EXTRA_TEXT, "See attached CSV files.");
Put the text as an ArrayList
ArrayList<String> extra_text = new ArrayList<String>(); extra_text.add("See attached CSV files."); sendIntent.putStringArrayListExtra(Intent.EXTRA_TEXT, extra_text);
Voila! More exceptions, and EXTRA_TEXT ends up as the body of the letter.
EDIT: I think just commenting on this line gets rid of the error - but then you cannot enter any information for the body. In my case, this is normal as I only send log files by email. Delete this line to get rid of the warning: 'sendIntent.putExtra (Intent.EXTRA_TEXT, "See Attached CSV Files.");'
Kevin
source share