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

197
Views
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 answers
Answer question

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 Report
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!