Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change confirmation emails from wordpress@yourdomain.com

Viewing 4 replies - 1 through 4 (of 4 total)

  • Henry Wright
    Moderator

    @henrywright

    Try the wp_mail_from filter:

    add_filter( 'wp_mail_from', function( $email ) {
        return 'admin@jamsession.dk';
    } );

    travisrcampbell
    Participant

    @travisrcampbell

    Hi Henry – I pasted this at the bottom of my functions.php file in my child theme and emails are still sent from wordpress@jamsession.dk.


    travisrcampbell
    Participant

    @travisrcampbell

    Never mind! it works 🙂 I just realized that I was saving the functions file in my main directory and not my child theme 🙂


    Henry Wright
    Moderator

    @henrywright

    Often you’ll also want to change the from “name”. That can be done with:

    add_filter( 'wp_mail_from_name', function( $name ) {
        return 'Jam Session';
    } );
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar