Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Ben Huson

    (@husobj)

    Please try downloading this updated version and let me know if this fixes your issue.

    Thank

    Thread Starter Samuel Aguilera

    (@samuelaguilera)

    Thanks. I have installed it and I’ll report back later.

    Thread Starter Samuel Aguilera

    (@samuelaguilera)

    It’s working now 🙂

    Thanks!

    Plugin Author Ben Huson

    (@husobj)

    Thanks, the fix will be in the next update.

    When will the fix be available?

    Hi, any chance we can get an alternative download for the updated plugin?
    Iv’e been searching everywhere for a solution for changing the default from email and name, and yours is the only one that mentions not altering it for plugins like contact form 7.

    I found some code that seems to work.
    It does not interfere with contact form 7.

    /*
     * Plugin Name: T5 Filter System From Mail
     * Description: Sets the WP from mail address to the first admin’s mail and the from name to blog name.
     * Plugin URI:  http://toscho.de/?p=2201
     * Version:     2012.08.30
     * Author:      Thomas Scholz
     * Author URI:  http://toscho.de
     * License:     MIT
     */
    
    if ( ! function_exists( 't5_filter_system_from_mail' ) )
    {
        /**
         * First admin's e-mail address or blog name depending on current filter.
         *
         * See wp-includes/pluggable.php::wp_mail()
         *
         * @param  $input Name or email address
         * @return string
         */
        function t5_filter_system_from_mail( $input )
        {
            // not the default address, probably a comment notification.
            if ( 0 !== stripos( $input, 'wordpress' ) )
                return $input; // Not auto-generated
    
            return get_option( 'wp_mail_from' === current_filter()
                ? 'admin_email' : 'blogname' );
        }
    
        add_filter( 'wp_mail_from',      't5_filter_system_from_mail' );
        add_filter( 'wp_mail_from_name', 't5_filter_system_from_mail' );
    }
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Not working after upgrading to 1.0.2’ is closed to new replies.