BuddyDev

Send Welcome email to Users when they activate their account on WordPress & BuddyPress Based Social Network

Are you using BuddyPress with WordPress (not multisite)? In case of BuddyPress with non multisite WordPress, there is no welcome email sent to the user when they activate their account. Though, On a WordPress multisite install, the welcome email is sent on account activation. ย Here is a small code snippet that will allow you to send welcome emails to the new users on normal WordPress and BuddyPress installation.

Please put the following code in your bp-custom.php

Here is a screenshot to show what it sends. You may modify the actual content if you want.

Are you going to use this code? Do you think sending a welcome email for newly registered user is a good idea? Please do share your thoughts in the comments below.

16 Responses to Send Welcome email to Users when they activate their account on WordPress & BuddyPress Based Social Network

  • Hey, Brajesh.
    I was wondering if it is possible to let user's create their own page(FAN Page) like that of some big social networking website's, is there any plugin ??
    It will engage more user's to a particular BuddyPress Powered website's.
    I know you can develop like that i requested ๐Ÿ˜€
    Waiting for your reply Brajesh
    Thank's .

    • I am sorry but We already have the the plugin to release this month. Hopefully, we will be able to do it next month.

      Thanks
      Brajesh

  • This worked great. Thanks!

    One thing that you might be able to help me – I use the excellent free plugin called WP Better Emails – http://wordpress.org/plugins/wp-better-emails/ and it seem that it can find all the wp_mail uses and convert them to the template however not it this case. Any idea how I can edit/change the code to make this work?

  • @Erez Weinstein, you might be doing something wrong i used same WP Better Emails and it works with this tutorial without editing any code.

    Am using a child theme.

    regards

  • Thanks a lote dear…
    u made my day … its working fine and absolute. (y)

    • Hi Manish,
      Thank you for the comment and confirming that it is working .
      Cheers mate ๐Ÿ™‚

  • joy #

    Hi Brajesh, I'm using your auto activate and login plugin and I think it stops this email from being sent out. Since I'm disabling the activation email I would like to still send out a welcome email after a successful registration. Can you please help? Thank you.

    • Hi Joy,
      All you need to do is change the priority of the action like this

      That should do it.

  • Hi,
    I'm using your auto activate and login plugin which works great, except that 'bpdev_welcome_user_notification' hook doesn't work anymore. I'm using the new buddypress email api and i'm asking you how to use the new buddypress email api to send a the 'auto activation' email to confirm user that his account was created :

    https://codex.buddypress.org/emails/email-tokens/

    it's for this website:
    https://www.time2sail.com

    thanks for your help

    • Thank you for the comment and the question. I will post and update tot his tutorial in 2 days with the new BuddyPress Email API and link you.

      Regards
      Brajesh

      • Hi Brajesh, did you update the tutorial?
        Thanks

        • Hi Paulido,
          I have tested with BP Auto Activate Auto Login 1.4.3, BuddyPress 2.6.1.1, WordPress 4.5.3 and the above code works without any modification.

          If it is not working, most probably you have a plugin short circuiting the bp_core_activated_user hook.

  • I know this is an old post, but I just ran across this and it is "almost" exactly what I was looking for. How would I add a function to this only to a certain member type. For instance, I have 3 different member types, but only want to send a welcome email for just one of the member types. I am sure this can be done, just not sure how to achieve it. Thanks!

    • Hi Greg,
      Thank you for posting.
      All you need to do is check for the member type at the top of the function. you can us a condition like this

      if ( ! bp_has_member_type( $user_id, "member_type_name" ) ) {
      return ;
      }

      Changing th "member_type_name" with your member type name. I am assuming that you are assigning membertype on activation(and before priority 10).

      If you need further help, Please do post on our forums with details and Our team will help you.

      Thank you
      Brajesh

  • hi
    in new update buddypress there is not bp-custom login
    where must I paste this code in new version of buddypress?
    thanks

    • Hi Reza,
      Please create a file named bp-custom.php in your wp-content/plugins directory and put the code there.

      Hope that helps.
      Thank you
      Brajesh