Skip to:
Content
Pages
Categories
Search
Top
Bottom

Emails showing as being sent from wordpress

  • @jersey-peeps

    Participant

    Hi guys I have picked up on a bug where as any emails being sent are being shown as from wordpress and not from my website.

    Being a custom website I would prefer users not to know that i’m using wordpress to run the website, plus it doesn’t look very professional.

    I was using WP Better emails plugin which fixed this issue, but it conflicts with the buddypress built in email features so have had to disable it to make every thing work as it should.

    Any ideas on how to show emails being sent as being sent from my website and not ‘wordpress’ ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • @danbp

    Participant

    Hi @jersey-peeps,

    i’m using wp-better-emails on a multisite BP install (lastest version) without any trouble. I changed the “from” field within this plugin admin.

    On a single WP install (lastest version), i use this from within child-theme’s functions.php
    So if you uninstalled better_emails, you could try these snippets.

    //notification mail email change
    add_filter('wp_mail_from','custom_email_from');
    function custom_email_from($mail) {
    	$mail = 'your@mail.name'; // Replace the email address here //
    	return $mail;
    }
    
    //notification name change; optional
    add_filter('wp_mail_from_name','custom_email_from_name');
    function custom_email_from_name($name) {
    	$name = get_bloginfo('YOUR SITE NAME');//put your own text here
    	return $name;
    }

    In hope it helps you. 😉

    @shanebp

    Moderator

    Perhaps this is due to the new BP Email API?
    If so, try this for BP emails:

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

    And use Dan’s functions to handle WP emails.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Emails showing as being sent from wordpress’ is closed to new replies.
Skip to toolbar