Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change From Address and Name in Notification Emails


  • jamesandrewbishop
    Participant

    @jamesandrewbishop

    WP V. 5.0.3
    BP V. 4.1.0

    Home

    I have searched and found the following information on changing who notification emails are seen as coming from:

    Filter From Address and Name
    If you have been using the wp_mail_from or wp_mail_from_name WP filter, then you need to switch to this:

    add_action( ‘bp_email’, function( $email_type, $email_obj ) {
    $email_obj->set_from( “custom@example.com”, “Custom Website Name” );
    }, 10, 2 );

    Unfortunately, it isn’t clear where I am supposed to add this code. Can I access the file from the WordPress editor? Or, do I need FTP access to do this? Why is the from name and from address not an inline editing option on the WP backend?

    Thanks,
    James

Viewing 1 replies (of 1 total)

  • shanebp
    Moderator

    @shanebp

    Please use the code button when sharing code.

    It would be a useful option in the WP backend.

    For now, you need ftp or cpanel access to the site.
    You can place that code in your theme > functions.php
    If it does not work in that file, try placing it in bp-custom.php

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar