title: Nodemailer - email send but not receive
body: <p>I'm build an API with feathersjs and I need to send an email with an attachment.</p>
  <p>The email seems to be send but I receive nothing.</p>
  <p>In my mail.service.js</p>
  <pre><code>const nodemailer = require('nodemailer');
  const transporter = nodemailer.createTransport({
    host: 'smtp.office365.com',
    port: 587,
    secure: false, // secure:true for port 465, secure:false for port 587
    auth: {
      user: 'gil.felot@myaccount.com',
      pass: 'MyPassWord'
    }
  });
  
  // Check the connection to the service.
  transporter.verify(function(error, success) {
    if (error) {
      console.log(error);
    } else {
      console.log('Server is ready to take our messages');
    }
  });
  </code></pre>
  <p>Then in my hook</p>
  <pre><code>hook =&gt; {
      const file = hook.params.file;
  
      const email = {
        from: 'gil.felot@myaccount.com', // sender address
        to: 'mygmailaccount@gmail.com', // list of receivers
        subject: 'Test Nodemailer', // Subject line
        // text: req.body.text, // plaintext body
        html: '&lt;b&gt;Hello world &lt;/b&gt;', // html body
        attachments: [
          {
            filename: file.originalname,
            contents: new Buffer(file.buffer, 'base64'),
            encoding: 'base64'
          }
        ]
      };
  
      return hook.app.service('mail').create(email)
        .then(function (result) {
          console.log('Sent email', result);
        }).catch(err =&gt; {
          console.log(err);
        });
    }
  </code></pre>
  <p>then I got</p>
  <blockquote>
  <p>Server is ready to take our messages</p>
  <p>Sent email</p>
  <p>Object {from: &quot;gil.felot@myaccount.com&quot;, to: &quot;mygmailaccount@gmail.com&quot;, subject: &quot;Test Nodemailer&quot;, html: &quot;<b>Hello world </b>&quot;}</p>
  </blockquote>
  <p>I have no idea how to check where the problem come from.</p>