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

208
Vistas
STMP.js is not sending an email is there something I am doing wrong?

I am trying to send emails from my client-side javascript however the function does not send the email. I do not know what I am doing wrong yet or is the feature disabled from Gmail? Here is my code

function sendEmail() {

      Email.send({
        Host: "smtp.gmail.com",
        Username: "myemail@gmail.com",
        Password: "password",
        To: "recepientemail",
        From: "myemail@gmail.com",
        Subject: "Subject",
        Body: "Hooray",
      })
        .then(function (message) {
          console.log("mail sent successfully")
        });
    
}
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You have to allow access to less secure apps in your gmail settings (This option will be available till 30th May 2022)

about 4 years ago · Juan Pablo Isaza Denunciar
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