- Podrobnosti
- Kategorie: CMS
Soubor: \wp-includes\pluggable.php
// From email and name
// If we don't have a name from the input headers
$from_name = 'MUJ_WORDPRESS';
if (! isset( $from_name ) )
$from_name = 'WordPress';
/* If we don't have an email from the input headers default to wordpress@$sitename
* Some hosts will block outgoing mail from this address if it doesn't exist but
* there's no easy alternative. Defaulting to admin_email might appear to be another
* option but some hosts may refuse to relay mail from an unknown domain. See
* http://trac.wordpress.org/ticket/5007.
*/
$from_email = 'nejaka@moje_adresa';
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;
}
Místo vygenerované adresy Wordpress <wordpress@sitename> se bude zobrazovat MUJ_WORDPRESS <nejaka@moje_adresa>.