Title: Ted Roche's Replies | WordPress.org

---

# Ted Roche

  [  ](https://wordpress.org/support/users/tedroche/)

 *   [Profile](https://wordpress.org/support/users/tedroche/)
 *   [Topics Started](https://wordpress.org/support/users/tedroche/topics/)
 *   [Replies Created](https://wordpress.org/support/users/tedroche/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/tedroche/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/tedroche/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/tedroche/engagements/)
 *   [Favorites](https://wordpress.org/support/users/tedroche/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Twenty Ten Header Rotator] [Plugin: Twenty Ten Header Rotator] Broke on update to WordPress 3.1](https://wordpress.org/support/topic/plugin-twenty-ten-header-rotator-broke-on-update-to-wordpress-31/)
 *  Thread Starter [Ted Roche](https://wordpress.org/support/users/tedroche/)
 * (@tedroche)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-twenty-ten-header-rotator-broke-on-update-to-wordpress-31/#post-1937417)
 * > after the line
   > `function hr_rotate(){`
   >  change `require (ABSPATH.'/wp-admin/custom-header.
   > php');` to `require_once (ABSPATH.'/wp-admin/custom-header.php');`
 * Confirmed! That fixes it. Thanks!
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [Admin email help](https://wordpress.org/support/topic/admin-email-help/)
 *  [Ted Roche](https://wordpress.org/support/users/tedroche/)
 * (@tedroche)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/admin-email-help/#post-505277)
 * There’s a couple conflicting things going on here. First, wp_mail explicitly 
   hardcodes ‘wordpress’ @ yourservername.tld in the _header_ of the email, that’s
   the outside envelope, but not necessarily what the recipient will see.
 * function wp_mail($to, $subject, $message, $headers = ”) {
    if( $headers == ” ){
   $headers = “MIME-Version: 1.0\n” . “From: ” . get_settings(‘admin_email’) . “\
   n” . “Content-Type: text/plain; charset=\”” . get_settings(‘blog_charset’) . “\”\
   n”; # was: “From: wordpress@” . preg_replace(‘#^www\.#’, ”, strtolower($_SERVER[‘
   SERVER_NAME’])) . “\n” . }
 *  return [@mail](https://wordpress.org/support/users/mail/)($to, $subject, $message,
   $headers);
    }
 * The second problem is PHP’s tendency to send mail with a “Return-Path” setting
   of ‘apache@example.com’ or whatever the name of your name server is. You can 
   fix that with the fix described here:
 * [http://drupal.org/project/returnpath](http://drupal.org/project/returnpath)
 * You might be able to override this for multiple named-hosts on a server with 
   php_value settings for each host configuration file, but I haven’t tried that.
 * There’s a good chance that all of this will be moot if you upgrade to the 2.2
   version.

Viewing 2 replies - 1 through 2 (of 2 total)