Modify WordPress php mailer sender address.

By default, php mail function will use http server startup user as the sendmail “FROM” user.

It’ll look better if the mail sent by a human readable mail address.

find the wp-includes/functions.php

 
 function wp_mail($to, $subject, $message, $headers = ‘’, $more = ‘’) {
        if( $headers == ‘’ ) {
                $headers = "MIME-Version: 1.0\n" .
                "From: " . get_settings(’blogname’) ." <noreply @mydream.com.hk>\n" .
                "Content-Type: text/plain; charset="" . get_settings(’blog_charset’) . ""\n";
        }
 
        return @mail($to, $subject, $message, $headers, $more);
}
 
</noreply>