Attachment file name is incorrect
<p>I am creating app in android in which i am sending Email with attachment. Email sending code is working fine but issue is that file which i receive on Email has wrong name. File name is concatenated with path name like i am creating file with name abc.csv and in mail i am receiving it as <strong>_mnt_sdcard_MyTest_abc.csv</strong>. Here is the code please suggest how to fix this.</p>

<pre><code> File   folder = new File(Environment.getExternalStorageDirectory() + File.separator
                 + getString(R.string.app_name));
   Mail m = new Mail("abc@gmail.com", "000000"); 
      String[] toArr = MailTo;
      m.setTo(toArr); 
      m.setFrom("abc@gmail.com"); 
      m.setSubject(Subject); 
      m.setBody(Body); 
      try { 
           m.addAttachment(folder+"/"+filename); 
          if(m.send()) {
              result= true;
        } else { 
            result= false;
        } 
      } catch(Exception e) { 
       Log.e("MailApp", "Could not send email", e); 
      } 
      return result;
</code></pre>
