Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

318
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda