Search Results for 'activation email'
-
Search Results
-
I think I resolved the issue. The issue was that only users that are on GMAIL receive new user activation email upon joining my buddypress powered site. Users in other email domains were not receiving user activation emails. I am running my own VPS based host, essentailly I own the server with public IP that is running WP and BP, so I think this situation might apply to others, hence this post. I am hoping this could help others with similar email issues.
Here are the of my install:
1. WordPress version 3.3.1
2. WordPress installed as directory
3. WordPress installed in root
4. Fresh Install
5. Fresh install of BP version 1.5.4 define( ‘BP_ENABLE_MULTIBLOG’, true);
6. Running LEMP server (CentOS 5.8+Nginx +MySQL+PHP)7. Started troubleshooting by checking sendmail logs:
cat /var/spool/mail/nginx8. Observed following error messages:
The following addresses had permanent fatal errors
(reason: 554 Denied [SHXBL] – Denied by Spamhaus XBL – See http://www.spamhaus.org/query/bl?ip=my.host.ip.add (Mode: normal))9. Followed link provided to spamhaus which presented me with:
my.host.ip.add is listed in the XBL, because it appears in:
CBL (link to CBL)
10. Followed CBL Link to read:
“This IP address is HELO’ing as “localhost.localdomain” which violates the relevant standards (specifically: RFC5321)”11. Followed link provided to http://cbl.abuseat.org/namingproblems.html
the gist of which is:
“There are two basic types of detections that land an IP in this page. RFC2821 section 4.1.1.1 says that there are only two legal types of HELO/EHLO a mail server can issue – either a fully qualified domain name (eg: “mail.example.com”) or an “IP literal” (eg: “[1.2.3.4]”).”12. Followed instructions to fix link for UNIX system (also there is a link for Windows) to http://cbl.abuseat.org/sendmailhelp.html
13. completed fix to sendmail.cf file, I chose to respond to HELO as [my.host.ip.add] fashion and completed sendmail restart.
14. you will now need to delist your domain from CBL – go back to CBL link (it will complain about timestamp, so might have to do it through spamhaus link) and at the bottom of the page there should be link to request de-listing. Click and wait 1-2 hours
14. I tested again, by sending registration email from my BP install (signed up new user) to check how the email header is received now, here is a comparison for before and after. Then fix was confirmed working as registration email came through to another email domain
Before:
Received: from localhost.localdomain ([my.host.ip.add])
by mx.google.com with ESMTP id e70si6268183yhk.134.2012.03.30.09.16.56;
Fri, 30 Mar 2012 09:16:56 -0700 (PDT)After:
Received: from [my.host.ip.add] ([my.host.ip.add])
by mx.google.com with ESMTP id n5si4532434614yhm.135.2012.03.30.11.24.59;
Fri, 30 Mar 2012 11:24:59 -0700 (PDT)(As posted in “Installing Buddypress Forums” Sorry, I didn’t realize I was in the wrong forum.)
Hello, I’ve been looking around for a plugin that will let me allow/deny registration for my BP/WP site.
I am using BP 1.5.5 and WP 3.3,I looked in the core-filters.php and came across the code to send the activation code to the user’s email.
`
/***
* bp_core_filter_user_welcome_email()
*
* Replace the generated password in the welcome email.
* This will not filter when the site admin registers a user.
*
* @uses locate_template To see if custom registration files exist
* @param string $welcome_email Complete email passed through WordPress
* @return string Filtered $welcome_email with ‘PASSWORD’ replaced by [User Set]
*/
function bp_core_filter_user_welcome_email( $welcome_email ) {
/* Don’t touch the email if we don’t have a custom registration template */
if ( ” == locate_template( array( ‘registration/register.php’ ), false ) && ” == locate_template( array( ‘register.php’ ), false ) )
return $welcome_email;// [User Set] Replaces ‘PASSWORD’ in welcome email; Represents value set by user
return str_replace( ‘PASSWORD’, __( ‘[User Set]’, ‘buddypress’ ), $welcome_email );
}
if ( !is_admin() && empty( $_GET ) )
add_filter( ‘update_welcome_user_email’, ‘bp_core_filter_user_welcome_email’ );/***
* bp_core_filter_blog_welcome_email()
*
* Replace the generated password in the welcome email.
* This will not filter when the site admin registers a user.
*
* @uses locate_template To see if custom registration files exist
* @param string $welcome_email Complete email passed through WordPress
* @param integer $blog_id ID of the blog user is joining
* @param integer $user_id ID of the user joining
* @param string $password Password of user
* @return string Filtered $welcome_email with $password replaced by [User Set]
*/
function bp_core_filter_blog_welcome_email( $welcome_email, $blog_id, $user_id, $password ) {
/* Don’t touch the email if we don’t have a custom registration template */
if ( ” == locate_template( array( ‘registration/register.php’ ), false ) && ” == locate_template( array( ‘register.php’ ), false ) )
return $welcome_email;// [User Set] Replaces $password in welcome email; Represents value set by user
return str_replace( $password, __( ‘[User Set]’, ‘buddypress’ ), $welcome_email );
}
if ( !is_admin() && empty( $_GET ) )
add_filter( ‘update_welcome_email’, ‘bp_core_filter_blog_welcome_email’, 10, 4 );// Notify user of signup success.
function bp_core_activation_signup_blog_notification( $domain, $path, $title, $user, $user_email, $key, $meta ) {// Send email with activation link.
$activate_url = bp_get_activation_page() .”?key=$key”;
$activate_url = esc_url( $activate_url );$admin_email = get_site_option( ‘admin_email’ );
if ( empty( $admin_email ) )
$admin_email = ‘support@’ . $_SERVER;$from_name = ( ” == get_site_option( ‘site_name’ ) ) ? ‘WordPress’ : esc_html( get_site_option( ‘site_name’ ) );
$message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
$message = sprintf( __( “Thanks for registering! To complete the activation of your account and blog, please click the following link:nn%1$snnnnAfter you activate, you can visit your blog here:nn%2$s”, ‘buddypress’ ), $activate_url, esc_url( “http://{$domain}{$path}” ) );
$subject = ‘ ‘ . sprintf(__( ‘Activate %s’, ‘buddypress’ ), esc_url( ‘http://’ . $domain . $path ) );// Send the message
$to = apply_filters( ‘bp_core_activation_signup_blog_notification_to’, $user_email, $domain, $path, $title, $user, $user_email, $key, $meta );
$subject = apply_filters( ‘bp_core_activation_signup_blog_notification_subject’, $subject, $domain, $path, $title, $user, $user_email, $key, $meta );
$message = apply_filters( ‘bp_core_activation_signup_blog_notification_message’, $message, $domain, $path, $title, $user, $user_email, $key, $meta );wp_mail( $to, $subject, $message, $message_headers );
do_action( ‘bp_core_sent_blog_signup_email’, $admin_email, $subject, $message, $domain, $path, $title, $user, $user_email, $key, $meta );
// Return false to stop the original WPMU function from continuing
return false;
}
if ( !is_admin() )
add_filter( ‘wpmu_signup_blog_notification’, ‘bp_core_activation_signup_blog_notification’, 1, 7 );function bp_core_activation_signup_user_notification( $user, $user_email, $key, $meta ) {
$activate_url = bp_get_activation_page() . “?key=$key”;
$activate_url = esc_url($activate_url);
$admin_email = get_site_option( ‘admin_email’ );if ( empty( $admin_email ) )
$admin_email = ‘support@’ . $_SERVER;// If this is an admin generated activation, add a param to email the
// user login details
$email = is_admin() ? ‘&e=1’ : ”;$from_name = ( ” == get_site_option( ‘site_name’ ) ) ? ‘WordPress’ : esc_html( get_site_option( ‘site_name’ ) );
$message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
$message = sprintf( __( “Thanks for registering! To complete the activation of your account please click the following link:nn%snn”, ‘buddypress’ ), $activate_url . $email );
$subject = ‘ ‘ . __( ‘Activate Your Account’, ‘buddypress’ );// Send the message
$to = apply_filters( ‘bp_core_activation_signup_user_notification_to’, $user_email, $user, $user_email, $key, $meta );
$subject = apply_filters( ‘bp_core_activation_signup_user_notification_subject’, $subject, $user, $user_email, $key, $meta );
$message = apply_filters( ‘bp_core_activation_signup_user_notification_message’, $message, $user, $user_email, $key, $meta );wp_mail( $to, $subject, $message, $message_headers );
do_action( ‘bp_core_sent_user_signup_email’, $admin_email, $subject, $message, $user, $user_email, $key, $meta );
// Return false to stop the original WPMU function from continuing
return false;
}
if ( !is_admin() || ( is_admin() && empty( $_POST ) ) )
add_filter( ‘wpmu_signup_user_notification’, ‘bp_core_activation_signup_user_notification’, 1, 4 );`
I replaced $user_email, with $admin_email,
it doesn’t seem to work.
did I miss something here?
Any ideas?Thank you

Ps. BP rocks.
Hello, I’ve been looking around for a plugin that will let me allow/deny registration for my BP/WP site.
I am using BP 1.5.5 and WP 3.3,I looked in the core-filters.php and came across the code to send the activation code to the user’s email.
`
/***
* bp_core_filter_user_welcome_email()
*
* Replace the generated password in the welcome email.
* This will not filter when the site admin registers a user.
*
* @uses locate_template To see if custom registration files exist
* @param string $welcome_email Complete email passed through WordPress
* @return string Filtered $welcome_email with ‘PASSWORD’ replaced by [User Set]
*/
function bp_core_filter_user_welcome_email( $welcome_email ) {
/* Don’t touch the email if we don’t have a custom registration template */
if ( ” == locate_template( array( ‘registration/register.php’ ), false ) && ” == locate_template( array( ‘register.php’ ), false ) )
return $welcome_email;// [User Set] Replaces ‘PASSWORD’ in welcome email; Represents value set by user
return str_replace( ‘PASSWORD’, __( ‘[User Set]’, ‘buddypress’ ), $welcome_email );
}
if ( !is_admin() && empty( $_GET ) )
add_filter( ‘update_welcome_user_email’, ‘bp_core_filter_user_welcome_email’ );/***
* bp_core_filter_blog_welcome_email()
*
* Replace the generated password in the welcome email.
* This will not filter when the site admin registers a user.
*
* @uses locate_template To see if custom registration files exist
* @param string $welcome_email Complete email passed through WordPress
* @param integer $blog_id ID of the blog user is joining
* @param integer $user_id ID of the user joining
* @param string $password Password of user
* @return string Filtered $welcome_email with $password replaced by [User Set]
*/
function bp_core_filter_blog_welcome_email( $welcome_email, $blog_id, $user_id, $password ) {
/* Don’t touch the email if we don’t have a custom registration template */
if ( ” == locate_template( array( ‘registration/register.php’ ), false ) && ” == locate_template( array( ‘register.php’ ), false ) )
return $welcome_email;// [User Set] Replaces $password in welcome email; Represents value set by user
return str_replace( $password, __( ‘[User Set]’, ‘buddypress’ ), $welcome_email );
}
if ( !is_admin() && empty( $_GET ) )
add_filter( ‘update_welcome_email’, ‘bp_core_filter_blog_welcome_email’, 10, 4 );// Notify user of signup success.
function bp_core_activation_signup_blog_notification( $domain, $path, $title, $user, $user_email, $key, $meta ) {// Send email with activation link.
$activate_url = bp_get_activation_page() .”?key=$key”;
$activate_url = esc_url( $activate_url );$admin_email = get_site_option( ‘admin_email’ );
if ( empty( $admin_email ) )
$admin_email = ‘support@’ . $_SERVER;$from_name = ( ” == get_site_option( ‘site_name’ ) ) ? ‘WordPress’ : esc_html( get_site_option( ‘site_name’ ) );
$message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
$message = sprintf( __( “Thanks for registering! To complete the activation of your account and blog, please click the following link:nn%1$snnnnAfter you activate, you can visit your blog here:nn%2$s”, ‘buddypress’ ), $activate_url, esc_url( “http://{$domain}{$path}” ) );
$subject = ‘ ‘ . sprintf(__( ‘Activate %s’, ‘buddypress’ ), esc_url( ‘http://’ . $domain . $path ) );// Send the message
$to = apply_filters( ‘bp_core_activation_signup_blog_notification_to’, $user_email, $domain, $path, $title, $user, $user_email, $key, $meta );
$subject = apply_filters( ‘bp_core_activation_signup_blog_notification_subject’, $subject, $domain, $path, $title, $user, $user_email, $key, $meta );
$message = apply_filters( ‘bp_core_activation_signup_blog_notification_message’, $message, $domain, $path, $title, $user, $user_email, $key, $meta );wp_mail( $to, $subject, $message, $message_headers );
do_action( ‘bp_core_sent_blog_signup_email’, $admin_email, $subject, $message, $domain, $path, $title, $user, $user_email, $key, $meta );
// Return false to stop the original WPMU function from continuing
return false;
}
if ( !is_admin() )
add_filter( ‘wpmu_signup_blog_notification’, ‘bp_core_activation_signup_blog_notification’, 1, 7 );function bp_core_activation_signup_user_notification( $user, $user_email, $key, $meta ) {
$activate_url = bp_get_activation_page() . “?key=$key”;
$activate_url = esc_url($activate_url);
$admin_email = get_site_option( ‘admin_email’ );if ( empty( $admin_email ) )
$admin_email = ‘support@’ . $_SERVER;// If this is an admin generated activation, add a param to email the
// user login details
$email = is_admin() ? ‘&e=1’ : ”;$from_name = ( ” == get_site_option( ‘site_name’ ) ) ? ‘WordPress’ : esc_html( get_site_option( ‘site_name’ ) );
$message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
$message = sprintf( __( “Thanks for registering! To complete the activation of your account please click the following link:nn%snn”, ‘buddypress’ ), $activate_url . $email );
$subject = ‘ ‘ . __( ‘Activate Your Account’, ‘buddypress’ );// Send the message
$to = apply_filters( ‘bp_core_activation_signup_user_notification_to’, $user_email, $user, $user_email, $key, $meta );
$subject = apply_filters( ‘bp_core_activation_signup_user_notification_subject’, $subject, $user, $user_email, $key, $meta );
$message = apply_filters( ‘bp_core_activation_signup_user_notification_message’, $message, $user, $user_email, $key, $meta );wp_mail( $to, $subject, $message, $message_headers );
do_action( ‘bp_core_sent_user_signup_email’, $admin_email, $subject, $message, $user, $user_email, $key, $meta );
// Return false to stop the original WPMU function from continuing
return false;
}
if ( !is_admin() || ( is_admin() && empty( $_POST ) ) )
add_filter( ‘wpmu_signup_user_notification’, ‘bp_core_activation_signup_user_notification’, 1, 4 );`
I replaced $user_email, with $admin_email,
it doesn’t seem to work.
did I miss something here?
Any ideas?Thank you

Ps. BP rocks.
1. Ok, this is something I have never understood and I really need to now that this site is about to go live. When I sign up a test account on my buddypress register page, I activate it via the email, etc then it says activation complete, etc. But what I don’t get is, the new user does not show up in the SITE admin > Users > All Users, it only shows up in the NETWORK admin Users > All Users. This means that my client’s staff will not be able to see the BuddyPress members in their site admin users area right? Why is this?
2. Another issue I am having now is that when checking what the actual WordPress ROLE the new BuddyPress user was by testing it with a function like this:
if( current_user_can( ‘author’ ))
…the BuddyPress new user didn’t match any of them. I tried Editor, Author, Member, Subscriber, Moderator, Contributor, Key Master… and even Blocked and Inactive (whatever those are) and none of them affected this new user. What role is WordPress even giving the new BuddyPress users? I have verified that the new BP user does not have access to the WP admin dashboard at all, so that is good. But I need to be able to filter certain aspects of the site in addition to this, thus I need to know how to use the above conditional for BP users.
3. After I get this sorted, is there a plugin or function I can use that would cause new BuddyPress registrants to be automatically redirected to the BP Groups area when logging in?
Topic: Activation Key Required
I just set up Buddypress and my new member registration email takes me to my Buddypress site and requires an activation key. How do I not make this required so the person just clicks on the link on their email and it takes them to the “Congrats your activation is successful” screen.
Hi all. I have an issue where the two emails that are supposed to go out when a new user registers on the site, the activation email to the user and the ‘new user registration’ email to the admin, does not get sent / delivered. I’ve tried deactivating all my plugins and deactivated my premium buddypress theme but it still didn’t work. Only after disabling buddypress and using the standard WordPress install, does a user receive their activation email. I have searched high and low, but I just cannot get to the bottom of this, but as soon as I activate buddypress, it stops working. Any help would be greatly appreciated. Thanks, Justin.
So after a new user click the activation link in their email why does it also ask them for a code? it doesn’t need it so why is it there?
New users can receive email and click to activate account, it says, account activated! then asks for an activation key. Is this a conflict between wp an bp? how can i resolve it? it works fine with bp default, but not the theme i’m using.
Thanksbp 1.5.4