I’m having the same headache! The mail address in Options > General has no effect… keeping getting wordpress@mysite.net
Ok.. some digging and searching through the hords of php files… here is the hack:
– All the settings you need are in /wp-includes/pluggable-functions.php
– Go to line 119 – wordpress@ is HARDCODED!!!
– Replace this line:
“From: wordpress@” . preg_replace(‘#^www\.#’, ”, strtolower($_SERVER[‘SERVER_NAME’])) . “\n” .
– With this line:
“From: Your nice name here <youremail@blogurl.com” . “\n” .
This is a HACK by a novice so if someone can help correct the code to map it towards the details in the Options / General settings this would be EXCELLENT!!
This totally worked for me! But I had to NOT add the address after the @. When the test email arrived it had it twice. So this worked for me. /wp-includes/pluggable-functions.php
if ( !function_exists('wp_mail') ) :
function wp_mail($to, $subject, $message, $headers = '') {
if( $headers == '' ) {
$headers = "MIME-Version: 1.0n" .
"From: myblogname<myblogname@" . preg_replace('#^www.#', '', strtolower($_SERVER['SERVER_NAME'])) . "n" .
"Content-Type: text/plain; charset=\"" . get_settings('blog_charset') . "\"n";
}