服务器中的设置是什么/etc/hostname
文件基于wp\\U邮件源代码:
if ( !isset( $from_email ) ) {
// Get the site domain and get rid of www.
$sitename = strtolower( $_SERVER[\'SERVER_NAME\'] );
if ( substr( $sitename, 0, 4 ) == \'www.\' ) {
$sitename = substr( $sitename, 4 );
}
$from_email = \'wordpress@\' . $sitename;
}
这意味着
localhost
是从中提取的
/etc/hostname
.