Is it just the activation email that is not sending?
Or all BP emails, including things like @mentions ?
also – have you tried disabling BP Email ?
Emails will then be sent via the WP Email code.
I do not know if it sends others since I haven’t launched the site until this is fixed.
How could I test those?
As for the disabling, I saw that mentioned but I do not have a bp-custom.php file under wp-content/plugins. Why would that be?
I have a screenshot I could show you. But doesn’t look like I can send them here.
Could I do it under another php? Why wouldn’t I have the bp_custom.php?
You could put it in your theme > functions.php
Or in bp-custom.php
bp-custom.php
Hallelujah, it is working. THANK YOU
I am having this same issue having tried the solutions all listed above, but have yet to get it to work.
I have created a folder named “bp-custom” at wp-content/plugins/bp-custom
Inside is a php file named bp-custom.php
In that php file is
<?php
add_filter( 'bp_email_use_wp_mail', '__return_true' );
?>
Which causes me to get
”
Warning: Use of undefined constant ‘bp_email_use_wp_mail’ – assumed ‘‘bp_email_use_wp_mail’’ (this will throw an Error in a future version of PHP) in /srv/users/cd-staging-2/apps/concinnity-works/public/wp-content/plugins/bp-custom.php on line 3
Warning: Use of undefined constant ‘__return_true’ – assumed ‘‘__return_true’’ (this will throw an Error in a future version of PHP) in /srv/users/cd-staging-2/apps/concinnity-works/public/wp-content/plugins/bp-custom.php on line 3
” in the header of my site.
Am I failing at the implementation here? What is causing me to still not get activation emails?
Move bp-custom.php
to the plugins folder: wp-content/plugins/bp-custom.php
Delete the folder named bp-custom
at wp-content/plugins/bp-custom
Okay, did that.
Still throwing in error in the header.
Should the .php file have <?php ?> tags in it?
> Should the .php file have <?php ?> tags in it?
Yes – please read the documentation: https://codex.buddypress.org/themes/bp-custom-php/
Yeah I did that. Still not working for me.
I have the disable bp mail function in between the 2 php tags, per the codex. Uploaded to /plugins as you said, still no dice. Still shows error codes in the header.
Hi,
I was getting the same message.
Turns out, the apostrophe used was the wrong one.
Corrected to
add_filter( ‘bp_email_use_wp_mail’, ‘__return_true’ );
And the message was gone.