How to send emails from Android using Intent

Sending emails from your Android App is a very important feature that will help your customers to communicate with you directly. You can do it in many ways. The simplest way is to create an intent and start an email client that is installed on your phone. Copy the below code and make the necessary changes to match your app and support email.

Intent selectorIntent = new Intent(Intent.ACTION_SENDTO);
final Intent emailIntent = new Intent(Intent.ACTION_SEND);
emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{“”});
emailIntent.putExtra(Intent.EXTRA_SUBJECT, “Feedback for My App”);
emailIntent.putExtra(Intent.EXTRA_TEXT, “Dear Support Team: “);
emailIntent.setSelector( selectorIntent );
startActivity(Intent.createChooser(emailIntent, “Send email…”));

Add a Comment

Your email address will not be published. Required fields are marked *