How to send email in android ?How to send email in android ?

Send email in android by default android mail intent.

Answer 1

To send email in android start intent with android.content.Intent.ACTION_SEND option.

Check This Code :

   
      Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);

      String[] recipients = new String[]{"info@xxxxxx.com", "",};

      emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, recipients);

      emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "");

      emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "");

      emailIntent.setType("text/plain");

      startActivity(Intent.createChooser(emailIntent, "Send mail..."));

SUBMIT YOUR ANSWER

  |  
 
 
 

Preview :