title: Nodemailer problems with tls/certificate (SMTP)
body: <p>I want to send an e-mail with nodemailer, my configurations are:</p>
  
  <pre><code>var nodemailer = require('nodemailer');
  
  var transporter = nodemailer.createTransport({
      host: 'smtp.mydomain.de',
      port: 25,
      logger: true,
      auth: {
          user: 'info@mydomain.de',
          password: 'mypassword',
      }
  });
  
  var mailOptions = {
      from: 'info@mydomain.de',
      to: recipient,
      subject: 'subject',
      text: '&lt;p&gt;hallo&lt;/p&gt;'
  };
  
  
  transporter.sendMail(mailOptions, function (error, info) {
      if (error) {
          console.log("Error in sendMail:");
          console.log(error);
      } else {
          console.log('Email sent: ' + info.response);
      }
  });
  </code></pre>
  
  <p>I got an error: "Error: Hostname/IP doesn't match certificate's altnames:...", after some research i added:</p>
  
  <pre><code>    tls: {
          rejectUnauthorized: false
      }
  </code></pre>
  
  <p>to my transporter. And now i get:</p>
  
  <p>Error: Missing credentials for "PLAIN"</p>
  
  <p>I have no idea, what to change. I have the certificate for sending with SSL, but don't know where to put it nor which credentials are missing. </p>