title: problem sending an email with an attachment programmatically
body: <p>i`m trying to send an email using native email client on android
  phone.</p>
  
  <p>I have tried following ways to add an attachment to the mail...</p>
  
  <p>method--1  </p>
  
  <pre><code>Intent sendIntent = new Intent(Intent.ACTION_SEND);
  sendIntent.setType("image/jpeg");
  sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://sdcard/abc.jpg"));
  </code></pre>
  
  <p>method 2</p>
  
  <p>Sending the image as body content---</p>
  
  <pre><code>sendIntent.putExtra(Intent.EXTRA_TEXT, "&lt;HTML&gt;&lt;BODY&gt;&lt;b&gt;&lt;IMG**SRC=
  \"data:image/jpeg;base64," + &lt;imagepath&gt; + "\"**alt = \"**pleaseview this
  image\"/&gt;&lt;/b&gt;&lt;/BODY&gt;&lt;/HTML&gt;");
  </code></pre>
  
  <p>i can successfully attach the image manually but when i tried to
  attach and send it programmatically the mail was sent without
  attachement.</p>
  
  <p>Please let me know if there is a way to send an attachment
  programmatically by using email client</p>