Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

313
Views
smtp.js only works locally

I am trying to send emails through javascript with smtp.js. If I open my website locally everything works fine, but if i host it on my domain it just stops working. How can I make it work?

  function sendEmail() {
    Email.send({
      SecureToken: "5b51f40c-7d97-46db-a4d7-055bc8384828",
      To: "contact@jayden.hu",
      From: document.getElementById("input2").value,
      Subject: "Contact",
      Body:
        "Name: " +
        document.getElementById("input1").value +
        "<br> E-mail: " +
        document.getElementById("input2").value +
        "<br> Message: " +
        document.getElementById("input3").value,
    }).then((message) => alert(message, type));
  }

Error I get:

smtp.js:2 POST https://smtpjs.com/v3/smtpjs.aspx? net::ERR_INTERNET_DISCONNECTED
ajaxPost    @   smtp.js:2
(anonymous) @   smtp.js:2
send    @   smtp.js:2
sendEmail   @   (index):185
onsubmit    @   (index):139
smtp.js:2 POST https://smtpjs.com/v3/smtpjs.aspx? net::ERR_INTERNET_DISCONNECTED
ajaxPost    @   smtp.js:2
(anonymous) @   smtp.js:2
send    @   smtp.js:2
sendEmail   @   (index):185
onsubmit    @   (index):139
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!