How To Send Email From Android (using The Default Account)?
I would like to leverage the goggle account credentials belonging to the synced user on android to send emails in the background, it is possible to achieve that ? If not, is it pos
Solution 1:
You question is to send email via intent
Intent emailIntent=newIntent(Intent.ACTION_SEND);
emailIntent.putExtra(Intent.EXTRA_EMAIL,newString[]{"email@address.com"});
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "subject");
emailIntent.putExtra(Intent.EXTRA_TEXT, "body");
emailIntent.setType("text/plain");
startActivity(emailIntent);
To send email in background use JavaMail API with activation framework.
Post a Comment for "How To Send Email From Android (using The Default Account)?"