• I have observed a possible conflict between JigoShop and Contact Form 7.

    It appears that the code in plugins/jigoshop/jigoshop.php is adding a filter for ‘wp_mail_from_name’.

    add_filter( 'wp_mail_from_name', 'jigoshop_mail_from_name' );
    function jigoshop_mail_from_name( $name ) {
    	$name = get_bloginfo('name');
    	$name = esc_attr($name);
    	return $name;
    }

    The wp_mail() function in the WP core code in ‘wp-includes/pluggable.php’ invokes this filter chain. As a result of this, every email that gets sent out from the site has the default “name of blog” in the “From” header of the email.

    This happens even when specific “From: Me MySelf <me@example.net>” headers are included in the call to wp_mail().

    In my case, I notice that all emails originating from the website, including those from Contact Form 7 always have “name of blog” in the “From” header field of outgoing emails.

    There is another piece of related code in plugins/jigoshop/jigoshop.php is commented out. This is the code to overwrite the default “From Email Address” header field.

    /*
    add_filter( 'wp_mail_from', 'jigoshop_mail_from' );
    function jigoshop_mail_from( $email ) {
    	$email = Jigoshop_Base::get_options()->get_option('jigoshop_email');
    	return $email;
    }
    */

    If this code were not commented out, all outgoing emails would be sent from the default email address registered under the main WP settings.

    Any ideas? Am I thinking correctly ? I am new to WordPress, so my analysis may be faulty.

    So far, I can only assume that this code is not needed, especially because JigoShop email code (jigoshop_emails.php) always explicitly adds headers in the call to ‘wp_mail()’ anyway.

    http://wordpress.org/plugins/jigoshop/

  • The topic ‘JigoShop conflict with Contact Form 7’ is closed to new replies.