title: Why can't I send emails through amazon ses on Node?
body: <p>I'm using "aws-sdk": "^2.117.0", my code looks like this:</p>
  
  <pre><code>var AWS = require('aws-sdk');
  exports.sendAWSMail = function(message, destination){
    const ses = new AWS.SES();
    // http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SES.html#sendEmail-property
    const sendEmail = ses.sendEmail;
    var data = {
      Destination: {
       ToAddresses: [
          "blahblah@gmail.com"
       ]
      },
      Message: {
       Body: {
        Html: {
         Charset: "UTF-8",
         Data: "This message body contains HTML formatting. It can, for example, contain links like this one: &lt;a class=\"ulink\" href=\"http://docs.aws.amazon.com/ses/latest/DeveloperGuide\" target=\"_blank\"&gt;Amazon SES Developer Guide&lt;/a&gt;."
        },
        Text: {
         Charset: "UTF-8",
         Data: "This is the message body in text format."
        }
       },
       Subject: {
        Charset: "UTF-8",
        Data: "Test email"
       }
      },
      Source: "no-reply@frutacor.com.br",
     }
    sendEmail(data)
  }
  </code></pre>
  
  <p>But I get this error:</p>
  
  <p>TypeError: this.makeRequest is not a function
      at svc.(anonymous function) (/Users/iagowp/Desktop/trampos/frutacor/node_modules/aws-sdk/lib/service.js:499:23)</p>
  
  <p>I didn't find any Node examples at their website, but from what I've seen elsewhere (like <a href="https://jaketrent.com/post/send-email-aws-sdk-node-example/" rel="nofollow noreferrer" title="here">here</a>), it looks correct. What am I doing wrong?</p>