If you use Mailgun to send emails from Noptin, you can automatically track bounced emails, spam complaints, and unsubscribes by connecting Mailgun to Noptin’s bounce handler. Noptin will update the affected subscribers’ statuses to prevent sending future emails to those addresses.

This works even if you’re sending emails through a WordPress SMTP plugin. Setting up bounce handling doesn’t change how your emails are sent.

Copy your Mailgun webhook URL

  1. Open Noptin > Settings in WordPress.
  2. Choose Emails, then find the Bounce Handling settings group.
  3. Select Mailgun under Email Service.
  4. Copy the complete Mailgun Bounce Handler URL. Do not replace or remove its security code.
Mailgun bounce handler url

Configure Mailgun

  1. Log in to your Mailgun account and open Send > Sending > Webhooks.
  2. Click Add webhook and choose Domain-level to set it up for the domain that sends your Noptin emails.
Choose Domain-level for the domain that sends your Noptin emails.
Choose Domain-level for the domain that sends your Noptin emails.
  1. Enter a description and paste the Mailgun Bounce Handler URL you copied from Noptin in the first step into the HTTP POST URL field.
  2. Next, select Permanent failure, Spam complaints, and Unsubscribes under Events. Leave unrelated events unselected.
  3. Choose your sending domain and click Create webhook. If your Mailgun screen lists separate webhook fields for each event, use the same Mailgun Bounce Handler URL for all three events.
  4. Use Mailgun’s webhook test or send a controlled test email, then check the delivery result in Mailgun.

What changes in Noptin

Permanent failures mark matching subscribers as Bounced. Complaints mark them as Complained, and unsubscribe events mark them as Unsubscribed. Temporary delivery failures do not mark subscribers as bounced.

The notification must contain an email address already in your Noptin subscriber list. These status changes retain the subscriber record and stop future Noptin campaign delivery to that address; they do not delete it.

Check the connection

Add an invalid email as a test subscriber in Noptin, then send them a test email. Check the webhook delivery result in Mailgun, then find the same email address in Noptin > Subscribers and check its status.

Keep your bounce handler URL private. Its security code allows the holder to submit bounce and unsubscribe notifications to your site.

Related Guides

  • Amazon SES

    Connect Amazon SES and SNS to Noptin to automatically mark permanent bounces and spam complaints while retaining subscriber records.

    Read More

  • Brevo

    Connect Brevo webhooks to Noptin to handle delivery failures, spam complaints, and supported unsubscribe events automatically.

    Read More

  • Elastic Email

    Connect Elastic Email webhooks to Noptin to handle delivery failures, spam complaints, and supported unsubscribe events automatically.

    Read More

  • Google Workspace

    Learn how to automatically mark subscribers as bounced in Noptin when Google Workspace reports a bounced email. Works with Gmail

    Read More

  • Pepipost

    Connect Pepipost webhooks to Noptin to handle delivery failures, spam complaints, and supported unsubscribe events automatically.

    Read More

  • Postal

    Connect Postal bounce webhooks to Noptin to automatically stop future campaigns to subscribers whose emails permanently fail delivery.

    Read More

  • Postmark

    Connect Postmark bounce and spam complaint webhooks to Noptin to automatically leave affected subscribers out of future campaigns.

    Read More

  • SendGrid

    Connect SendGrid webhooks to Noptin to handle delivery failures, spam complaints, and supported unsubscribe events automatically.

    Read More

  • SMTP2GO

    Connect SMTP2GO webhooks to Noptin to handle delivery failures, spam complaints, and supported unsubscribe events automatically.

    Read More

  • SparkPost

    Connect SparkPost webhooks to Noptin to handle delivery failures, spam complaints, and supported unsubscribe events automatically.

    Read More

  • ToSend

    Automatically update Noptin subscribers after ToSend hard bounces and spam complaints, so future campaigns leave out those addresses.

    Read More

  • How to automatically delete bounced subscribers

    How to automatically delete subscribers who bounce or report your emails as SPAM

    Read More