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

181
Views
Correo electrónico enviado con JavaScript que no se envía

Aquí está mi código, toma la entrada del usuario y envía un correo electrónico como ellos. funcionaba bien, pero dejo de funcionar, alguien sabe porque?

 function othername() { var input = document.getElementById("userInput").value; } function pass() { var password = document.getElementById("password").value; return password; } function sendEmail() { Email.send({ Host: "smtp.gmail.com", Username: othername(), Password: pass(), To: 'person@gmail.com', From: othername(), Subject: "Sending Email using javascript", Body: "This email was sent with javascript :)", }) .then(function(message) { alert("mail sent successfully") }); };
 <script src="https://smtpjs.com/v3/smtp.js"></script> <p style="position:absolute; top:50%; left:5%; width:40%;">Put in your email address:</p> <p style="position:absolute; top:70%; left:5%; width:40%;">Put in your password(we do not save this, read more in our about page)</p> <form id="form" onsubmit="return false;"> <input style="position:absolute; top:60%; left:5%; width:40%;" type="text" id="userInput" placeholder="Example@gmail.com" /> <input style="position:absolute; top:80%; left:5%; width:40%;" type="text" id="password" placeholder="example: 11223344" /> <input style="position:absolute; top:90%; left:5%; width:40%;" type="submit" onclick="sendEmail()" /> </form>

¿Estoy cometiendo algún error tonto? He hecho esto en python y, a veces, no se envía porque alcancé mi límite de envío o el límite de acceso de gmail, pero no he accedido mucho. ¡Gracias!

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!