title: Send mail with Nuxt trough Sendgrid
body: <p>I have a simple vuetify contact form and I want to send this forms by email.
  I have tried to use a <code>method</code> to send the email, but it does not work, because its on client side. So I get CORS issues.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>async send() {
    if (this.$refs.form.validate()) {
      try {
        const sgMail = require("@sendgrid/mail");
        sgMail.setApiKey(process.env.SENDGRID_API_KEY);
        const msg = {
          to: "test@example.com",
          from: "me@mydomain.com",
          subject: "Sending with SendGrid is Fun",
          text: "and easy to do anywhere, even with Node.js",
          html: "&lt;strong&gt;and easy to do anywhere, even with Node.js&lt;/strong&gt;"
        };
        sgMail.send(msg);
      }
    }
  }
  </code></pre>
  
  <p>Is Express (or an other backend) required? Is there a way to make it work using a middleware?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Apparently, it's just not possible: <a href="https://github.com/sendgrid/sendgrid-nodejs/issues/730" rel="nofollow noreferrer">https://github.com/sendgrid/sendgrid-nodejs/issues/730</a></p>