title: Uncaught ReferenceError: emailjs is not defined at HTMLFormElement.onsubmit
body: <p>I'm trying to use Emailjs as client side script to send email. But am getting the error as "Uncaught ReferenceError: emailjs is not defined
      at HTMLFormElement.onsubmit". </p>
  
  <p>Please find the below html code. </p>
  
  <pre><code>&lt;form id="myform" onsubmit="emailjs.sendForm('default_service', 'XXXXXX', this); return false;"  method="post"&gt;
    &lt;label&gt;reply_to&lt;/label&gt;
    &lt;input type="text" name="reply_to" /&gt;
    &lt;label&gt;from_name&lt;/label&gt;
    &lt;input type="text" name="from_name" /&gt;
    &lt;label&gt;to_name&lt;/label&gt;
    &lt;input type="text" name="to_name" /&gt;
    &lt;label&gt;message_html&lt;/label&gt;
    &lt;input type="text" name="message_html" /&gt;
    &lt;br&gt;&lt;br&gt;
    &lt;button&gt;
      Send
    &lt;/button&gt;
  &lt;/form&gt;
  &lt;script type="text/javascript" src="https://cdn.emailjs.com/sdk/2.2.4/email.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
     (function(){
        emailjs.init("user_ABC");
     })();
  &lt;/script&gt;
  </code></pre>
  
  <p>Please help on this! </p>