Quantcast
Channel: Innovaminds Blog » Wordpress
Viewing all articles
Browse latest Browse all 8

How to change WordPress default email address | wordpress@domain.com | noreply@domain.com

$
0
0

When your users reset their password or submit a post, they will receive an email from wordpress@yourdomain.com or noreply@yourdomain.com. Obviously for professional reasons (security too) you do not want this – you might want admin@yourdomain.com or something different.

So here’s how to change it: Establish an FTP connection to your website and navigate to wp-includes. In this directory you will find pluggable.php, this is the file you need to change. And what you’re looking for, looks like this:

if ( !isset( $from_name ) )
$from_name = ‘WordPress’;

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;
}

Simply change ‘WordPress’ to a meaningful name, as this will be contained in the details for the ‘From’ field in an email. And the last part to change is $from_email = ‘YOURDOMAIN@’ . @sitename


Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles





Latest Images