title: Why sending mail is not working on my code ?
body: <p>Trying to send mail with attached file - and i don't know why this code is not working .. the mail is not sending </p>
  
  <pre><code>public void SendMailWithAttached(String fileToSend, String mailToSend)
  {  
      Intent sharingIntent = new Intent(Intent.ACTION_SEND);
      sharingIntent.setType("vnd.android.cursor.dir/email");
      sharingIntent.putExtra(Intent.EXTRA_EMAIL, fileToSend);
      sharingIntent.putExtra(Intent.EXTRA_STREAM,mailToSend);
      sharingIntent.putExtra(Intent.EXTRA_SUBJECT, "subject");
  
      startActivity(Intent.createChooser(sharingIntent, "Send email"));
  
  }
  </code></pre>