title: Send auto email programmatically
body: <p>i want to send email programmatically.</p>
  
  <p>i tried out the following code.</p>
  
  <blockquote>
    <p>final Intent emailIntent = new Intent(
                  android.content.Intent.ACTION_SEND);</p>
  
  <pre><code>  emailIntent.setType("plain/text");
  
    emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,
            new String[] { "abc@gmail.com" });
  
    emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,
            "Email Subject");
  
    emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,
            "Email Body");
  
    startActivity(Intent.createChooser(
            emailIntent, "Send mail..."));
  </code></pre>
  </blockquote>
  
  <p>but problem is that before sending email the application open the activity </p>
  
  <p><img src="https://i.stack.imgur.com/E5L4g.png" alt="alt text"></p>
  
  <p>i want to send email directly without open compose activity. how this possible?</p>