FAQS


How to send email in android ?

Views: 3049  |   Date: 2013-08-31 06:19:31

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 :