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

259
Views
How to trigger an API call on a button click inside an Email Template

This is a use case where an API has to be triggered when the user clicks a button on his/her email. The API call should hit the server to do some action in backend. I tried some javascript (fetch, XMLHttpRequest), but also came to know that all email clients do not support javascript. Is it right? Is there any options other than javascript?

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

0

Most (nearly 99%) of mail clients and servers will put the mail with JS into spam or won't even let it into your inbox. Even the mail client must be able to work with JS. While in Outlook it can be enabled with plugins, you have to be 100% sure, that the receiver will receive it, otherwise you can`t do it.

Another way to fetch data/get mail info like statistics is to add a unique ID to all links used in the mail. By chance, the user will click on it and you can work with the data on server side.

But as allready mentioned: Don`t use JS in your mails. It's not ment for mails.

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!