User:Hashar/How to change user email

This script will show you how you can change one of your user email by using MediaWiki interactive command system.

$ php maintenance/eval.php > $u = User::newFromName( 'hashar' );

> print $u->getEmail something@somehost.com

> $u->setEmail( 'somethingelse@anotherhost.org' );

> $u->saveSettings;

To verify:

$ php eval.php > $u = User::newFromName( 'hashar' );

> print $u->getEmail; somethingelse@anotherhost.org >