• The Confirmation email sends a email for the user using the own user email, because of that all emails go to the user’s spam folder.
    I am looking for a fix so it can use the website email as sender.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Márcio Lopes F?o

    (@marciofao)

    I’ve fixed it by editing wp-content/plugins/new-user-approve/new-user-approve.php

    Changed this function:

    
    public function email_message_headers() {
    		$admin_email = get_option( 'admin_email' );
    		if ( empty( $admin_email ) ) {
    			$admin_email = ‘support@‘ . $_SERVER['SERVER_NAME'];
    		}
    
    		$from_name = get_option( 'blogname' );
    
    		$headers = array(
    			"From: \"{$from_name}\" <{$admin_email}>\n",
    		);
    
    		$headers = apply_filters( 'new_user_approve_email_header', $headers );
    
    		return $headers;
    	}
    

    changed the $admin_email at the begining to

    
    $admin_email = '[email protected]';
    

    so it don’t pass the empty() verification and uses the defined email.

    Plugin Author WPExperts.io

    (@wpexpertsio)

    Hi @marciofao,

    We are pleased to announce important news. New user approve has been acquired by WP Experts. If being a user, you have any queries and issues, then we are solving your problems here.

    Thanks

    • This reply was modified 4 years, 6 months ago by WPExperts.io.
    Plugin Author WPExperts.io

    (@wpexpertsio)

    This thread has been marked as resolved due to lack of activity.

    You’re always welcome to open a new topic.

    Thanks for understanding!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Confirmation email using user email as sender goes to spam’ is closed to new replies.