title: Javascript Azure Function to send email using SendGrid
body: <p>I want to send emails from an Azure function (Javascript) using SendGrid. I have done the following</p>
  
  <ol>
  <li>created a new AppSettings for SendGrid API Key</li>
  <li>SendGrid output binding set of Azure Function</li>
  <li>Following is my Azure Function</li>
  </ol>
  
  <p>&nbsp;</p>
  
  <pre><code>    module.exports = function (context, myQueueItem) {
  var message = {
           "personalizations": [ { "to": [ { "email": "testto@test.com" } ] } ],
          from: { email: "testfrom@test.com" },        
          subject: "Azure news",
          content: [{
              type: 'text/plain',
              value: myQueueItem
          }]
      };
      context.done(null, message);
  };
  </code></pre>
  
  <p>But email is not getting send. Please provide some pointers</p>