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

1.5K
Views
How to solve the smtpjs error with gmail smtp host

I am working with smptjs to send email using javascript. The code was working fine until today morning.

I am getting the error "Only elasticemail is supported as an SMTP host. To open an account please visit https://elasticemail.com/account#/create-account?r=20b444a2-b3af-4eb8-bae7-911f6097521c"

I tried to search for this error and unsuccessful, any help in this matter would be appreciated.

This is my js code to send the email

const name = form.elements["name"].value;
const from = form.elements["email"].value;
const companyName = form.elements["company-name"].value;
const businessType = form.elements["business-type"].value;
const isOperatingBusiness = form.elements["business"].value;

const emailBody = `<h3>Please find the details below</h3>
<hr />
<span><strong>Name:</strong> ${name}</span><br />
<span><strong>Email Address:</strong>  ${from}</span><br />
<span><strong>Contact No:</strong>  ${phone}</span><br />
<span><strong>Company Name:</strong> ${companyName}</span><br />
<span><strong>Operating Business:</strong>  ${isOperatingBusiness}</span><br />
<span><strong>Business Type:</strong>  ${businessType}</span><br /><br />
<span>Thank you,</span><br />
<span>appiGo Team</span>`;

const emailObject = {
      Host: HOST,
      Username: USERNAME,
      Password: PASSWORD,
      To: DEV_MAIL,
      From: FROM,
      Subject: `${subject} ${name}`,
      Body: emailBody,
};

Email.send(emailObject).then((message) => {
      if (message == "OK") return onSuccess();
});

Thank you in advanced!

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Unfortunately, due to abuse (spam / phishing) SMTPJS.com has been limited to trusted SMTP providers. Currently the recommended SMTP provider is ElasticEmail, other SMTP providers may be considered in future.

about 4 years ago · Juan Pablo Isaza Report

0

Elastic Email is an Email Service Provider and you can create a free trial account here https://elasticemail.com/account#/create-account to get access to the email delivery engine and SMTP relay. With a trial, you can send up to 100 emails/day. For more, you have to pay.

That's probably the only option now with smptjs.

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!