title: How to fix: "Mailbox name not allowed. The server response was: Envelope FROM 'example@example.com' email address not allowed."
body: <p>I'm trying to make a contact form on my website with SMTP JS. However, when I submit info into the form it's not working outputting error message: &quot;SMTP JS Contact Form Says &quot;Mailbox name not allowed. The server response was: Envelope FROM 'example@example.com' email address not allowed.&quot;</p>
  <p>Here is my code:
  HTML:</p>
  <pre><code>  &lt;form onsubmit=&quot;send(); reset(); return false;&quot;&gt;
              &lt;input placeholder=&quot;First Name&quot; required id=&quot;first-name&quot;&gt;&lt;br&gt;
              &lt;input placeholder=&quot;Last Name&quot; required id=&quot;last-name&quot;&gt;&lt;br&gt;
              &lt;input placeholder=&quot;Email Adress&quot; required id=&quot;email&quot;&gt;&lt;br&gt;
              &lt;button&gt;Submit&lt;/button&gt;
          &lt;/form&gt;
  </code></pre>
  <p>SMTP JS</p>
  <pre><code>&lt;script src=&quot;https://smtpjs.com/v3/smtp.js&quot;&gt;&lt;/script&gt;
  &lt;script&gt;
  var send = function() {
      Email.send({
      Host : &quot;smtp.elasticemail.com&quot;,
      Username : &quot;example@example.com&quot;,
      Password : &quot;My Password&quot;,
      To : 'example@example.com',
      From : document.getElementById(&quot;email&quot;).value,
      Subject : &quot;New Signup!!!&quot;,
      Body : &quot;And this is the body&quot;
  }).then(
    message =&gt; alert(message)
  );
  };
      &lt;/script&gt;
  </code></pre>
  <p>I've tried moving the website to https server as well as local host. How can I fix this?</p>