title: Attaching .txt to MFMailComposeViewController
body: <p>I have a .txt file stored in Documents Folder and I want to send it by  MFMailComposeViewController with next code in the body of <code>-sendEmail</code> method:</p>
  
  <pre><code>NSData *txtData = [NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"dataBase" ofType:@"txt"]];
          [mail addAttachmentData:txtData mimeType:@"text/plain" fileName:[NSString stringWithFormat:@"dataBase.txt"]];
  </code></pre>
  
  <p>When Mail composer appears I can see attachment in the mail body but I receive this mail without attachment. Maybe it is wrong MIME-type for .txt attachment or something wrong with this code?</p>
  
  <p>Thanks</p>