Features

Instant notifications with email webhooks

Get notified in real-time as soon as a transactional email event happens. Optimize your workflows, increase productivity and never miss an important notification.

Powerful email delivery without the hassle

MailerSend integrates quickly into your tech stack, scales with your sendings, and ensures that your emails get delivered.
The ease of integration is super. I write predominantly in Golang for back-end services, and I had MailerSend integrated in about sixty seconds flat. I've moved to MailerSend for all transactional email services.
David G. Developer, David G
It's really the most simple and powerful transactional email tool that I know. Price is really good. I've done several projects integrating MailerSend with Airtable and it works like magic.
Marcel S. Brand Strategy Consultant, Marcel S.
What's really worth mentioning is the outstanding customer support. Replies within minutes. MailerSend is extremely easy to use and super fast to set up. I was able to send the first email via the API in minutes.
Tobias R. Information Technology and Services, Self-employed, Tobias R
Adding awebhook in MailerSend

Easily create email webhooks

Set up webhooks in minutes via API or the app to start receiving information about transactional events. Simply configure your endpoint URL and choose the events you want to track.

Webhook event examples

Use webhooks to receive notifications about key events such as hard bounces, inbound forward fails, and sender identity verification. Each response contains a payload with the information about the event-related object.
Try for free
{
  "type": "activity.hard_bounced",
  "domain_id": "yv69oxl5kl785kw2",
  "created_at": "2024-01-19T12:57:33.255599Z",
  "webhook_id": "2351ndgwr4zqx8ko",
  "url": "https://your-domain.com/webhook",
  "data": {
    "object": "activity",
    "id": "5fc0d1a3b42c3e16e1774883",
    "type": "hard_bounced",
    "created_at": "2024-01-19T12:57:33.255599Z",
    "email": {
      "object": "email",
      "id": "5fc0d1a1671b12016277884a",
      "created_at": "2024-01-19T12:57:33.255599Z",
      "from": "test@mailersend.com,"
      "subject": "Hello from MailerSend",
      "status": "rejected",
      "tags": null,
      "headers": null,
      "message": {
        "object": "message",
        "id": "5fc0d1a1f718c90162341c3a",
        "created_at": "2024-01-19T12:57:23.000000Z"
      },
      "recipient": {
        "object": "recipient",
        "id": "5f6887d6fd913a6523283fd2",
        "email": "test@domain.com",
        "created_at": "2024-01-19T12:57:23.000000Z"
      }
    },
    "template_id": "7nxe3yjmeq28vp0k",
    "morph": {
      "object": "recipient_bounce",
      "reason": "The email account that you tried to reach does not exist. Please try double-checking the recipient's email address for typos or unnecessary spaces."
    }

  }
}
{
  "type": "inbound_forward.failed",
  "domain_id": "2351ndgwr4zqx8ko",
  "created_at": "2023-12-13T18:38:34.681535Z",
  "webhook_id": "7z3m5jgrogdpyo6n",
  "url": "https://your-domain.com/webhook",
  "data": {
    "url": "https://your-domain.com/webhook-failed",
    "response_code": 404,
    "inbound_message": {
      "object": "inbound_message",
      "id": "6579f9b45070e80427c85478",
      "sender": {
        "email": "test@example.com"
      },
      "subject": "Test Email Inbound",
      "created_at": "2023-12-13T18:36:36.000000Z"
    },
    "inbound": {
      "object": "inbound",
      "id": "7z3m5jgrogdpyo6n",
      "domain_id": "2351ndgwr4zqx8ko"
    }
  }
}
{
  "type": "sender_identity.verified",
  "domain_id": "7z3m5jgrogdpyo6n",
  "created_at": "2023-07-05T08:14:27.281958Z",
  "webhook_id": "7z3m5jgrogdpyo6n",
  "url": "https://your-domain.com/webhook",
  "data": {
    "object": "sender_identity",
    "id": "1234asdfg6zqx8ko",
    "email": "info@example.com",
    "name": "Test Name",
    "reply_to_email": "replyto@example.com",
    "reply_to_name": "Test Reply To",
    "is_verified": true,
    "add_note": true,
    "personal_note": "Hi, I’m adding this email address to our sender identities in our MailerSend account so it can be shown as the From address in our emails. Can you click on the confirmation link, so that I can complete the process?",
    "domain": {
      "object": "domain",
      "id": "1234asdfg6zqx8ko",
      "name": "example.com",
      "created_at": "2023-01-01T12:00:00.000000Z",
      "updated_at": "2023-01-01T12:00:00.000000Z"
    }
  }
}
MailerSend

Send secure HTTP requests

Protect your webhook URLs from malicious activity and false events with secure signature headers. Every HTTP POST request sent to your receiving app contains a secret signature key that is unique to you.

MailerSend

Monitor events as they happen

Create your custom analytics dashboard and set up triggered workflows based on any event type of your choice. Be notified of successful delivery, clicks, spam complaints, and more.

MailerSend

Auto-retry failed webhook attempts

Achieve high deliverability and reliability of webhook event notifications thanks to an auto-retry system designed to avoid overloading your application.

Webhooks events

Review your webhook history

See all POST requests, including retries, sent to your endpoint URL in the past 7 days. Monitor webhooks’ payload data for discrepancies and disable or delete your webhooks when necessary. Resend failed events to your webhook after resolution.

Integrations

Easily connect other web apps with MailerSend so they seamlessly work together to share information, automate workflows and enhance your customer experience.

24/7 technical support

Our award-winning customer support team is always available to help with setting up your account, using advanced features and troubleshooting.

93% satisfaction rate
100% response rate
24/7 support hours
MailerSend

Frequently asked questions

What are webhooks used for?

Webhooks are a kind of real-time communication bridge between different applications or services, allowing them to automate processes, integrate seamlessly, synchronize data, and provide instant notifications. They enable event-driven architecture, alerting, and efficient workflows by triggering specific actions when specific events occur. In email services like MailerSend, email webhooks are mostly used for receiving immediate updates on email events, such as deliveries, opens, clicks, or bounces, enabling users to track and respond to these events in real-time for enhanced communication, analytics, and added functionality for their applications.

Can an email trigger a webhook?

Yes, if you are using an email service provider that supports webhooks, like MailerSend, your emails can trigger webhooks. This is done by using webhook events, for example, activity.sent, activity.delivered, and activity.opened. The webhook is then triggered when these events occur—an email is sent, delivered or opened. 

What is MailerSend?

MailerSend is a transactional messaging service built to help developers get started quickly, and designed for whole teams to contribute.

What pricing plans are available?

Our free plan includes 3,000 emails, with additional emails charged on a pay-as-you-go basis at a rate of $1.00/1,000. The Premium plan is available for up to 2,500,000 emails/month, starting at $30/month for 50,000 emails, with additional emails charged at decremental rates starting at $0.90/1,000. Need more than 2,500,000 emails? Talk to us about a custom Enterprise plan.

What integrations does MailerSend have?

We have an extensive library of integrations to connect your web apps, including Zapier integration so that you can connect MailerSend with 4,000+ applications.

What is the difference between API and webhook?

Webhooks and APIs are both communication mechanisms between software applications. APIs (Application Programming Interfaces), establish rules for data exchange, enabling various interactions between systems. They involve making requests and receiving responses through predefined methods. On the other hand, webhooks facilitate real-time data transmission by sending HTTP callbacks when specific events occur. They are triggered by events in the system, allowing instant notifications and actions. While APIs support diverse interactions, webhooks excel in delivering timely, event-driven updates between systems without constantly polling the API. As soon as updates are pushed to the server, the JSON payload is posted on the callback URL.

Can a webhook send an email?

A webhook alone cannot send an email as webhooks are simply a way for one system to notify another system about events or updates by sending HTTP POST requests. You can, however, use a webhook to trigger an action in a system to send an email.

What options are available for developers?

We provide comprehensive technical documentation and 7 regularly updated SDK libraries (PHP, Laravel, Node.js, Golang, Python, Ruby, Java). Developers can simply plug in our email API or SMTP relay and MailerSend will do the rest.

How do you secure transactional email sending?

MailerSend is built on a secure email infrastructure, and our mail servers protect your email sendings with SPF, DKIM and DMARC authentication. 

We work hard to ensure that all accounts on our platform are legitimate and won’t be used for the purposes of spamming, protecting everyone’s email deliverability.

More features to explore

MailerSend is packed full of features that help you save time and grow your business.

Webhooks

Start collaborating on transactional emails now

Try MailerSend for free for up to 100 emails with a trial domain. Add your own domain to get 3,000 emails/month free and start sending.