title: How to attach a file to the mail in iPhone PhoneGap jQuery Mobile
body: <p>I Have implemented an <strong>iPhone application in Phone Gap using jQuery Mobile.</strong></p>
  
  <p>As the part of my app i need to <strong>send an email by click on a Button 'MAIL'</strong></p>
  
  <p>For that i added  <strong><code>EmailComposer plug in.</code></strong></p>
  
  <p>added  EmailComposer.js in www folder and</p>
  
  <p>added  EmailComposer.H and .M file in Resources folder of application.</p>
  
  <p>I implemented the code as follows</p>
  
  <pre><code>&lt;script type="text/javascript" src="EmailComposer.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" charset="utf-8"&gt; 
  
        function SendEmail() { 
  
             alert('XXXXX');
  
          window.plugins.emailComposer.showEmailComposer("SubjectXXX","PlainTextBody---", 
                                   "recipientName,recipientName", "ccRecipient", "bccRecipient",false); 
          } 
    &lt;/script&gt; 
  
  
  
  &lt;a href="#" onclick="SendEmail(); return false;"  data-icon="arrow-r" data-iconpos="left" class="ui-btn-left" &gt;Send&lt;/a&gt;
  </code></pre>
  
  <p>Mail composer view displays all is well.</p>
  
  <p><strong>Now I need to Atach a file to this email how to attach a file</strong></p>
  
  <p>Can any one guide me the way</p>
  
  <p>tahnks in advance.</p>