title: Send json message to api mandrill from html form
body: <p>I have a html contact form and I need to send an email without php. I'm trying to used the mandrill API sending a JSON message. My function calling from the <code>onsubmit</code> is like this, but I'm not recieveing any message to my email.</p>
  
  <pre><code>function send() {
  $.ajax({
      type: "POST",
      url: "https://mandrillapp.com/api/1.0/messages/send.json",
      data: {
      "key": "IL_tX9KjtDeZevJkN7YwHA",
      "message": {
          "text":document.getElementById("message").value,
          "subject": "Contacto desde la web",
          "from_email":document.getElementById("email").value,
          "from_name": document.getElementById("name").value,
          "to": [
              {
                  "email": "isabel.sanchez.saez@gmail.com",
                  "name": "Recipient Name",
                  "type": "to"
              }
          ]
      },
      "async": false
      }
  });
  alert("Gracias por ponerte en contacto con nosotros.");
  
  };
  </code></pre>