BuddyPress activation email notifications

[FIXED] BuddyPress Activation Email Not Sending?

Are your BuddyPress email notifications not sending?

A lot of BuddyPress users run into this issue. Sometimes, you’ll find that the password reset email is delivered, but the activation email isn’t.

We’ll show you the easy way to fix your BuddyPress notifications with SMTP. At the end of the article, we’ll also show you how to log and resend these emails.

Fix Your BuddyPress Emails Now

What Is the BuddyPress Activation Email?

The BuddyPress activation email is the email that’s sent when a new user first registers on your site. It contains a link that your new user needs to click to activate their account.

BuddyPress activation email

If this email isn’t delivered, your new users can’t complete the BuddyPress email verification process. That means they can’t log in and use their new account.

We’re going to show you how to send all BuddyPress emails through SMTP or a 3rd party email provider.

How to Fix BuddyPress Email Notifications

If BuddyPress emails aren’t sending, or they’re going to spam, the steps in this guide will fix it.

  1. Install WP Mail SMTP
  2. Choose an Email Provider
  3. Enable Email Logging
  4. Add Code Snippet to Fix BuddyPress Emails
  5. Test BuddyPress Activation Email
  6. View BuddyPress Activation Email in the Log
  7. Resend the BuddyPress Activation Email

Let’s start by installing WP Mail SMTP.

1. Install WP Mail SMTP

WP Mail SMTP is the best SMTP plugin for WordPress. It lets you send WordPress emails through a 3rd party email provider.

Using an email provider adds vital authentication headers to your emails. That’s extremely important because emails without these headers are often filed in the Junk Mail folder.

The basic steps in this tutorial will work with the free or Pro version of WP Mail SMTP. We recommend that you use the Pro license because it gives you some extra features, including:

We’ll show you how these features work later in the tutorial.

If you’re using the Pro version or above, you can download the latest copy of the plugin from the Downloads tab in your WP Mail SMTP account.

Download the WP Mail SMTP plugin

Go ahead and upload the plugin zip file to your WordPress site.

Install WP Mail SMTP

As soon as you Activate the plugin, the Setup Wizard will open in your browser. Let’s work through the Setup Wizard next.

2. Choose an Email Provider

In this step, we’re going to decide which email provider you want to use to send WordPress emails.

WP Mail SMTP supports free and paid mailers for any size of BuddyPress community.

Choose an email service provider for WordPress SMTP

Since you’ll want BuddyPress activation emails to arrive quickly, we strongly recommend that you choose a transactional email provider.

Transactional email providers are designed to handle high-volume sending, and they’re very good at delivering emails almost instantly. SMTP.com and Sendinblue are both great options.

If you’re just testing things out, Sendinblue has a free plan that you can use.

Sendinblue pricing

Other providers like Gmail or Other SMTP will likely work on a small site, but they aren’t designed to handle very high volume sending. So with Gmail SMTP, you’re more likely to run into issues as your community grows.

When you’ve chosen your WordPress email provider, click the link below to open up the corresponding doc. Following the steps in our doc will help you complete the signup process and get connected.

Mailers available in Lite + Pro Additional Mailers in Pro
SMTP.com Microsoft Outlook
Sendinblue Amazon SES
Mailgun Zoho Mail
SendGrid
Gmail / Google Workspace
Other SMTP

Need a hand?

Our Elite license includes White Glove Setup for SMTP.com or Mailgun.

3. Enable Email Logging

At the end of the WP Mail SMTP Setup Wizard, you’ll have the option to turn on 2 features:

  • The Detailed Email Logs setting will keep track of the subject, sender, recipient, and other header information.
  • Weekly Email Summaries will create a weekly report about the emails that have been sent.

We recommend that you turn both of these on.

Enable WordPress email logs and weekly summary

After enabling email logging, click Save and Continue to complete the setup. WP Mail SMTP will send an automatic test email so you know everything’s working.

Now your emails are set up, we want to recommend a few other features that are helpful to BuddyPress admins.

Let’s head to WP Mail SMTP » Settings.

WP Mail SMTP settings menu

And now click the Email Log tab at the top.

Email log settings tab

We recommend that you select Log Email Contents here. This will log the entire email body in addition to the headers. That can be helpful if you want to resend BuddyPress activation emails that fail.

If you want, you can also enable the other settings here, including:

  • Save attachments
  • Open email tracking
  • Click link tracking

And if you want, you can also reduce the Log Retention Period to make sure that BuddyPress email logs don’t eat up too much disk space.

WP Mail SMTP Email Log options

Now you’ve completed the WP Mail SMTP BuddyPress setup, there’s 1 more thing to do before we test it out.

We need to add a short code snippet to redirect your BuddyPress emails through your new email provider.

4. Add Code Snippet to Fix BuddyPress Emails

By default, WordPress sends password reset emails using the wp_mail() function. BuddyPress activation emails aren’t sent through wp_mail() by default, so that’s why so many people have issues with them.

So in this step, we’ll add a code snippet that’ll re-route all BuddyPress emails through WP Mail SMTP.

This code snippet will also make sure that all emails are sent as HTML emails, rather than in plaintext format. That lets you track opens and clicks.

First, you’ll want to connect to your site via FTP. If you’re using cPanel, you can also use the File Manager to edit the file.

In File Manager or your FTP application, navigate to

/wp-content/plugins/buddypress/bp-core

You’ll see a file here called bp-core-functions.php

Add code snippet to bp-core-functions.php to fix BuddyPress activation email

It’s good practice to make a copy of the file before editing it, just in case something goes wrong.

Now edit your bp-core-functions.php file and paste in this code snippet.

You can add it at line 10, right after the commented section.

Edit php-core-functions.php in BuddyPress

Here’s the code you’ll want to paste in to enable SMTP in BuddyPress:

// Set BP to use wp_mail
add_filter( 'bp_email_use_wp_mail', '__return_true' );
// Set messages to HTML for BP sent emails.
add_filter( 'wp_mail_content_type', function( $default ) {
	if ( did_action( 'bp_send_email' ) ) {
		return 'text/html';
	}
	return $default;
} );
// Use HTML template
add_filter(
	'bp_email_get_content_plaintext',
	function( $content, $property, $transform, $bp_email ) {
		if ( ! did_action( 'bp_send_email' ) ) {
			return $content;
		}
		return $bp_email->get_template( 'add-content' );
	},
	10,
	4
);

Save the file and you’re done. Now all your BuddyPress emails are being sent through WP Mail SMTP in HTML format.

Let’s try it out!

5. Test BuddyPress Activation Email

Now we have WP Mail SMTP up and running, all BuddyPress emails are being sent through your email provider. This will fix the issues you were having with email deliverability.

To test it out, we can register a brand new user on your BuddyPress site to trigger the activation email. Be sure to use a real email address for this test because we want to be sure that the email is delivered.

Go ahead and register a test user now.

Register a new BuddyPress user to trigger activation email

When you submit the form, you’ll get the activation email in your inbox.

BuddyPress activation email

If the BuddyPress verification email goes to spam, it’s possible that you have a missing DNS record.

You can test this by heading to the WP Mail SMTP Email Test page.

Email test in WP Mail SMTP

When you send a test email, WP Mail SMTP will detect any issues with your DNS records and let you know what’s missing.

For example, here’s what you’ll see if you don’t haven’t created a DMARC record.

WP Mail SMTP DMARC warning

If everything’s working, we can move on and look at some of those extra email logging features we talked about at the start.

6. View BuddyPress Activation Email in the Log

Now you have WordPress email logging enabled, every email sent from BuddyPress will be saved in your email log.

Head to WP Mail SMTP » Email Log to take a look.

Open the email log in WP Mail SMTP

We can see the BuddyPress activation email right here at the top of the email log.

BuddyPress activation email in WordPress email log

And because we enabled open and click tracking, we also know that the recipient received the activation email and clicked on a link.

BuddyPress click and open tracking on activation email

When you open up the log file, you’ll see some extra information.

At the top, you can see the Status of the email.

Status of BuddyPress activation email

All mailers support the Sent and Failed status. If you’re using SMTP.com, Sendinblue, or Mailgun, you might see Unconfirmed or Delivered as well.

Next, we’ll show you one final tip: how to resend verification emails from BuddyPress.

7. Resend the BuddyPress Activation Email

Right underneath the basic email log information, there’s also a Resend link.

This allows you to resend BuddyPress activation emails that have failed. If you want, you can forward them to a different email address.

Just hit Yes to resend the BuddyPress activation email that failed.

Resend WooCommerce emails in WP Mail SMTP

And that’s it! Now you know how to use BuddyPress SMTP to fix your activation emails.

Fix Your BuddyPress Emails Now

Next, Set Up Push Notifications in WordPress

Do you want to alert BuddyPress users or visitors? You can send alerts automatically based on specific actions, or manually send push notifications when you have something new to announce.

Check out this tutorial on how to add web push notifications to WordPress with a free plugin.

Ready to fix your emails? Get started today with the best WordPress SMTP plugin. WP Mail SMTP Elite includes full White Glove Setup and offers a 14-day money-back guarantee.

If this article helped you out, please follow us on Facebook and Twitter for more WordPress tips and tutorials.

Comments

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.