Setting Up Discord Alerts

Would you like to receive Discord notifications whenever your site fails to send emails? With our Discord integration, alerts are sent to your Discord servers or individual channels on your Discord server.

This tutorial will show you how to configure Discord alerts in WP Mail SMTP.


Before getting started, you’ll first need to make sure WP Mail SMTP is installed and activated on your WordPress site and that you’ve verified your license.

Accessing the Email Alerts Page

To begin setting up email alerts from the WordPress dashboard, go to WP Mail SMTP » Settings and click on the Alerts tab.

Where to find Alerts in WP Mail SMTP Settings

Once here, scroll down to the Discord section. To get started, you’ll need to create a webhook connection on your Discord server. Then, use the webhook URL to establish a connection between your site and Discord.

To do this, toggle the Discord Alerts option to the ON position.

Enable Discord Alerts option

You can leave this browser tab open as we’ll return to it later.

Creating a Webhook Connection

To start, you’ll need to log in to your Discord server. Once there, click the Server’s name at the top left corner to open additional settings.

Open Discord server options

Then, select Server Settings from the dropdown menu.

Select Server Settings

In the Server Overview page, select the Integrations sidebar menu under the APPS section.

Select the Integrations menu

Then click the Create Webhook button to proceed.

Click the Create Webhook button

This will generate a new webhook connection for your Discord server. Go ahead and click the Webhook to view additional details.

Select New webhook button

Next, enter a name you’d like to use in the Name field. This name can be helpful if you have multiple webhooks.

Set webhook name

Then, you’ll need to select the channel you’d like to send the email alerts to.

Select Discord channel

Note: You can update the webhook icon image by clicking the Photo icon next to the Discord logo.

Once done, be sure to click the Save Changes button to update your webhook.

Click the Save Changes button

Now, click the Copy Webhook URL button for your new webhook connection.

Copy webhook URL

Adding Discord Webhook URL

After that, return to your WP Mail SMTP Alerts settings page and paste the URL into the Webhook URL field.

Paste webhook URL

Next, either save your settings or continue to add other integrations. To save your settings, scroll down and click the Save Settings button.

Save your alerts settings

Once everything is set up correctly, you’ll get notifications in your Discord Server whenever your site fails to send an email. You can click the Test Alerts button to confirm your configuration.

Discord alerts test

That’s it! You’ve now learned how to configure Discord alerts in WP Mail SMTP.

Next, would you like to ensure emails are always sent on your website? See our tutorial to learn how to configure a backup connection in WP Mail SMTP.

Try our Free WP Mail SMTP plugin

Use your favorite SMTP provider to reliably send your WordPress emails.

Please enable JavaScript in your browser to complete this form.