title: Nodemailer error on production
body: <p>i have such config of nodemailer</p>
  
  <pre><code>    import nodemailer from 'nodemailer';
  import {email, emailPassword, emailService, emailName} from '../../config.json';
  
  var transporter = nodemailer.createTransport(`smtps://${emailName}%40${emailService}:${emailPassword}@smtp.${emailService}`);
  
  
  export function sendFeedBack(req, res, next) {
    const reason = chooseReason(req.body.reason);
    const email = req.body.email || ' не указан';
  
    var mailOptions = {
      from      : `MyDoc-TV`,
      to        : `ros.padalko@gmail.com`,
      subject   : `MyDoc-TV : ${reason}`,
      text      : 'Причина : ' + reason + '\n' +
                  'Имя : ' + req.body.name + '\n' +
                  'Фамилия : '+ req.body.surname + '\n' +
                  'Телефон : '+ req.body.phone + '\n' +
                  'Имейл : '+ email + '\n' +
                  'Сообщение : '+ req.body.message
    };
  
    transporter.sendMail(mailOptions,function(error) {
      if(error){
        return res.end({error:'error in mail servise'})
      }
      console.log('send succes');
      return res.end();
    });
  }
  </code></pre>
  
  <p>and everything is goo on localhost, but when i put it on production server it's broke my server. with the error </p>
  
  <pre><code>_http_outgoing.js:542
      throw new TypeError('First argument must be a string or Buffer');
      ^
  
  TypeError: First argument must be a string or Buffer
      at ServerResponse.OutgoingMessage.end (_http_outgoing.js:542:11)
      at server/controllers/feedBackController.js:25:18
      at Nodemailer.&lt;anonymous&gt;
  </code></pre>
  
  <p>error only on production , i go to settings of mail see i need to confirm the unknown request from my server which is in london,i conform it, but still have error,THanks </p>