Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android how to get sent/received email information

Hello I am just curious about. From Message Inbox/Outbox. we can retrieve :phone number,message body,date,locked status,StatusOnSim etc. So Can we retrieve from email (sent+inbox):Email_id,Subject,Body,CC,BCC etc. I want to retrive all this thing from my email like Email_id,Subject,Body,CC,BCC etc

if any one have idea regarding this than please help me on it.

like image 947
Maidul Avatar asked Sep 01 '12 07:09

Maidul


1 Answers

Code to send email information:

    Intent intent = new Intent(Intent.ACTION_SEND);
    intent.setType("text/plain");
    intent.putExtra(Intent.EXTRA_EMAIL, new String[] {
     "ur mail id" });
    intent.putExtra(Intent.EXTRA_SUBJECT, "ur subject");
    intent.putExtra(Intent.EXTRA_TEXT, "ur text");
    intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(FileName));
    startActivity(Intent.createChooser(intent, "Choose"));

it cant retrieve data like Email_id,Subject,Body,CC,BCC etc from ur mail box. But it possible in Message inbox.

like image 185
Vishnu Avatar answered Nov 01 '22 08:11

Vishnu