Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activation Email Name edit?

  • @jessiewordpress

    Participant

    Is there a way to edit the activation email “from” address? Right now, it comes from my ISP database name.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • @ckchaudhary

    Participant
    add_filter('wp_mail','my_custom_registration_mail');
    function my_custom_registration_mail($email) {
        if (isset ($email['subject']) && substr_count($email['subject'],'Activate Your Account')>0 ) {
        	//email sender name and email
        	if( empty( $email['headers'] ) ){
        	    $email['headers'] = array();
        	    $email['headers'][] = 'from:YourDomain<signups@yourdomain.com>';
        	}
        }
        return ($email);
    }

    This should do it. Just change ‘yourdomain’ with something proper.
    You’ll have to copy this code into bp-custom.php or your theme’s functions.php

    @jessiewordpress

    Participant

    Thanks. I put that in my child theme function.php file and it made my site go completely blank.

    Hmm. I don’t know what I’m doing wrong?

    @ckchaudhary

    Participant

    Most likely its an issue with copying the code from here. It adds backticks in code, you need to remove those carefully.

    @chatty24

    Participant

    @jessiewordpress

    If the code is not working for you then you can try the following plugin

    WP Change Default Email —-> https://wordpress.org/plugins/wp-change-default-email/

    Hope it helps 😀

    @jessiewordpress

    Participant

    Thank you for that plugin! I’ll use that for now 🙂

    What would be great is a plugin that helps with that AND editing the activation email AND changing the register/login page to not look like WordPress.

    For instance, this is a wordpress website and has this register/login page: https://www.ziibra.com/signup/

    Any suggestions for a workable plugin that accomplishes all of this?

    @jessiewordpress

    Participant

    I mean the login page looks like WordPress. Not the registration page. That looks great 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Activation Email Name edit?’ is closed to new replies.
Skip to toolbar