To set up a webhook, register an endpoint URL on your server that Mailpro can call whenever an email event happens — delivered, opened, clicked, bounced or unsubscribed — so your app receives that data in real time instead of polling for it. Webhooks work alongside the Mailpro API and send a small JSON payload to your URL each time an event fires.

What is a webhook?

A webhook is an automated message sent from one system to another when something happens. Instead of your application repeatedly asking Mailpro for updates, Mailpro pushes each event to your endpoint the moment it occurs. It is the event-driven counterpart to the email API, which you call on demand.

New to sending programmatically? see how APIs work before you wire up events.

How to set one up

  1. Create an endpoint on your server that accepts POST requests and returns a 200 response.
  2. Register that endpoint URL and select the events you want (opens, clicks, bounces, unsubscribes).
  3. Parse the JSON payload Mailpro sends and store or act on the event.
  4. Send a test event and confirm your endpoint logs it, then secure the URL.

Related questions

Deciding how to send? Compare the difference between SMTP and API.

Mailpro and the API

Beyond webhooks — build email into your product

Mailpro’s SMTP and API deliver your transactional and marketing email with real-time events, so your app always knows what happened.

Start free with MailproExplore Mailpro SMTP

Previous question

   

Next question

You might also be interested in:

Unleash the Power of Professional Email Marketing

Secure, scalable, and built for impact. Join Mailpro™ today and enjoy 500 free credits to send your first campaign.
Start Sending for Free