MediaWiki:Apihelp-createaccount-example-mail/en

Create user testmailuser and email a randomly-generated password.