title: Sending an eMail with Lambda, NodeJs and Nodemailer doesn't work
body: <p>I'm trying to send an email from Lambda with a previously SES authenticated account; with node.js using Nodemailer. There is no error, but it doesn't send neither. </p>
  
  <p>This is the process I'm using for:</p>
  
  <pre><code>module.exports.eviarCorreoPrueba = (event, context, callback) =&gt; {
    context.callbackWaitsForEmptyEventLoop = false;    
    console.log('inicia envio de correos');    
      var transporter = nodemailer.createTransport({
          //pool: true,
          host: 'email-smtp.us-east-1.amazonaws.com',
          port: 465,
          secure: true,
          auth: {
              user: 'user',
              pass: 'pass'
          }   
      });
      console.log('se crea transporte ');
  
      var mailOptions = {
          from: 'test@email.com',
          to: 'test@email.com',
          subject: 'Prueba Lambda',          
          html: 'hello World'
      };
      console.log('se asignan las opciones de correo');
      console.log('inicia envio de correo');
      transporter.sendMail(mailOptions, function (error, info) {
          if (error) {
              callback(null, {
                statusCode: 200,
                body: JSON.stringify({
                  input: 'not send'
                })
              })
          } else {
              console.log('Email sent');    
          }
      });
      console.log('funcion finalizada');    
  };
  </code></pre>
  
  <p>And these are the log answer results: </p>
  
  <p><a href="https://i.stack.imgur.com/yUVhd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yUVhd.png" alt="enter image description here"></a></p>