• Resolved Rafael

    (@jordh)


    Hello,

    since the 1.7 update of BNFW the plugins has stopped generating emails for a “New User Registration – For Admin” type notification. New users are registering on our site, but our mail logging shows that BNFW does not generate and send out any notification when they do.

    Test emails from that notification are being sent fine and are delivered on our end.

    It all worked fine before we updated the plugin to version 1.7.

    Regards,
    Rafael

Viewing 4 replies - 16 through 19 (of 19 total)
  • Plugin Author bnfw

    (@voltronik)

    Hi @jordh,
    I’d love to resolve this and am still investigating but it’s a complicated problem so it may take a while to resolve, if possible.

    Will update this thread if/when I have more.

    Thread Starter Rafael

    (@jordh)

    Hello @voltronik,

    no pressure. I just wanted to provide you with more detailed information on our setup to help you debug the issue. Thank you for your hard work.

    Regards,
    Rafael

    Thread Starter Rafael

    (@jordh)

    Hello @voltronik,

    I have written a custom notification that successfully hooks into the WooCommerce User creation process. Here’s some anonymized code I used:

    
    add_action( 'woocommerce_created_customer', 'custom_new_user_mail', 90)
    
    function custom_new_user_mail( $user_id ) {
    	$regular_data = get_userdata( $user_id );					// Get userdata for $user_id (as an object)
    	$meta = get_user_meta( $user_id );							// Get user metadata for $user_id (as an array)
    	$meta = array_filter( array_map( function( $a ) {			// Filter out empty metadata
    				return $a[0];
    			}, $meta ) );
    	if ( $meta['some_custom_meta_value'] == "yes" ) { /* code to build and send a custom mail */ }
    }

    I hope this is helpful to you in some way.

    Regards,
    Rafael

    • This reply was modified 6 years ago by Rafael.
    • This reply was modified 6 years ago by Rafael.
    Plugin Author bnfw

    (@voltronik)

    Thanks @jordh,
    I may have actually fixed this yesterday. Am going to do some testing today and will hopefully have a better fix out soon.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘BNFW stopped sending New User notifications’ is closed to new replies.