title: Nodemailer attachment not working in nodemailer 0.7.1
body: <p>I am trying to send an attachment using nodemailer 0.7.1. The attachment is sent fine but when I try to open it, the shows ERROR OPENING FILE.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>var nodemailer = require("nodemailer");
  
  var transport = nodemailer.createTransport("SMTP", {
      host: "smtp.gmail.com", // hostname
      secureConnection: true, // use SSL
      port: &lt;port&gt;, // port for secure SMTP
      auth: {
          user: "example.example@gmail.com",
          pass: "password"
      }
  });
  
  console.log("SMTP Configured");
  
  var mailOptions = {
      from: 'example.sender@gmail.com', // sender address
      to: 'example.receiver@gmail.com', // list of receivers
      subject: 'Report for Test Result', // Subject line
      text: 'Contains the test result for the test run in html file', // plaintext body
      attachments: [
          {
              'filename': 'results.txt',
              'filePath': './result/results.txt',
          }
  
      ]
  };
  transport.sendMail(mailOptions, function (error, response) {
      if (error) {
          console.log(error);
      } else {
          console.log("Message sent: " + response.message);
      }
  
  });
  </code></pre>
  
  <p>Any suggestion on how to resolve this would be of great help.</p>