Setting Up Slack Alerts

Would you like to receive Slack notifications whenever your site fails to send emails? With Slack integration, alerts are sent to your Slack workspaces or individual members of your team.

This tutorial will show you how to configure Slack 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 Slack section. To use Slack integration, you’ll need to create a Slack app and add its webhook URL to your site. Before doing this, set the Slack Alerts option to the on position.

Slack alerts toggle on

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

Creating a Slack App

To proceed, open the Slack API page and create a new app. In the Create an app dialog, choose From scratch to start building your app.

Create a Slack app from scratch

Now you’ll be able to choose an App Name for your Slack app.

Give your Slack app a name

You’ll also need to choose a workspace for your app from the workspace dropdown list.

Select a Slack workspace

Note: Be sure to choose the correct workspace because this setting can’t be changed after your app has been created. If you’ve chosen the wrong workspace, you’ll need to create your app again.

Once you’ve chosen your workspace, click the Create App button to generate your new Slack app.

Click create app

Once your Slack app is created, you can add both short and long descriptions, an app image, and a background color for the app under Display Information.

We’ve included an example of what a finished description would look like below:

Slack app information filled in

When you’re finished setting up your app as you like, click the Save Changes button at the bottom right of the screen to save your settings.

Save Changes to your Slack app

The next step is to enable and copy the webhook needed to connect your Slack app to WP Mail SMTP on your site.

To do this, click on Features » Incoming Webhooks in the sidebar of the Slack API page.

Incoming webhooks in Slack

The Incoming Webhooks page allows you to manage all incoming webhooks for your app.

Slack incoming webhooks page

To get started, set the Activate Incoming Webhooks toggle to On.

Slack incoming webhooks activated

Next, under Webhook URLs for Your Workspace, click on the Add New Webhook to Workspace button to generate the webhook URL for your app.

Generate a webhook for your Slack app

Since your Slack app will send notifications to a channel or individual, you’ll need to choose the intended recipient from the list of available channels and persons. To do this, click on the dropdown list and choose a channel or individual.

Choose a recipient for your Slack app

Now, grant permission to your app by clicking the Allow button.

Click the Allow button

After the operation completes, you’ll be redirected to the Incoming Webhooks page, where you’ll have a new Webhook URL for your app. Copy the Webhook URL from Slack by clicking the Copy button.

Copy Slack webhook URL

Adding Slack Webhook URL

After copying the URL, return to the browser tab with your WP Mail SMTP settings open and paste the webhook URL into the Webhook URL field.

Slack webhook URL added

Once you’re done with this step, 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

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

Example alert in Slack

Note: For more information about using webhooks in Slack, check out Slack’s Incoming Webhooks API documentation.

That’s it! You’ve now learned how to configure Slack 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.