<https://processwire.com/talk/topic/7051-email-new-user/>
<http://schema.org/text>
"This module allows you to automatically send an email to a newly created user with their username and password. It also has the option to automatically generate a password for the user upon creation. \n\nhttp://modules.processwire.com/modules/email-new-user/ \nhttps://github.com/adrianbj/EmailNewUser \n\nThe following things are configurable: \nWhether Send Email option should be automatically checked when creating new user - also affects new users created via API   \nFrom email address (if left blank it will use the admin email set in the config/php file   \nEmail subject   \nEmail body - includes the ability to use any fields from the user template using {field_name} codes so these can be put into the body wherever you want. It's your choice if you want to include the password in the email or not.   \nWhether to automatically generate a password. This can be toggled on/off, but even if it is on, you can override it by simply entering a password manually when creating the new user.   \nAbility to control the length and character sets used to make up the automatically generated password.   \nOption to send a test email to yourself to make sure it is configured the way you expect. \nBecause it is generally not a good idea to email passwords, it is highly recommended to use the new Password Force Change module in conjunction with this module. That way the user has to change their password the first time they login which will somewhat reduce the vulnerability of emailing the password. \n\n \n\nIt can also be used for API generated users: \n\n$modules-&gt;get(\"EmailNewUser\"); // call the module since it is not autoload on the front end\n$newuser = new User(); \n$newuser-&gt;name = 'newuser';\n$newuser-&gt;email = 'newuser@gmail.com';\n$newuser-&gt;sendEmail = true; // only needed if Automatic Email Send is unchecked\n$newuser-&gt;save();\nPlease let me know if you have any ideas for improvements. \n\nPS Thanks to everyone in this post: https://processwire.com/talk/topic/2981-new-user-welcome-message/ for their thoughts and ideas on how to do this. "
<https://processwire.com/talk/topic/7051-email-new-user/#comment-68050>