title: Convert ASP.NET SendGrid call into JavaScript?
body: <p>Consider the following ASP.NET example for sending an email using SendGrid. Is there a way to write the equivalent code in JavaScript?</p>
  
  <pre><code>    @{
         string message = "";
          if (IsPost) {
              var c = new System.Net.Mail.SmtpClient();
              c.Send("from@domain.com", "email@domain.com", "subject", "body");   
          }
      } 
  </code></pre>
  
  <p>Thank you.</p>