# How to manually add users and email in console mode?

**URL:** https://meta.discourse.org/t/how-to-manually-add-users-and-email-in-console-mode/26669
**Category:** Support
**Created:** [23 Marzo, 2015 14:16 UTC](https://meta.discourse.org/t/how-to-manually-add-users-and-email-in-console-mode/26669 "2015-03-23T14:16:43Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![tonycurzonprice](https://avatars.discourse-cdn.com/v4/letter/t/73ab20/32.png) [@tonycurzonprice](https://meta.discourse.org/u/tonycurzonprice)
#### Post date: [27 Agosto, 2015 21:19 UTC](https://meta.discourse.org/t/how-to-manually-add-users-and-email-in-console-mode/26669/9 "2015-08-27T21:19:27Z")

</div>

I do have a question about email notifications using this method.

I have added users through the console using the following commands:

> u = User.create!(username: ‘xx’, email: ‘xx@xx.com’, password: ‘xxx’, mailing\_list\_mode: ‘true’);u.approve(Discourse.system\_user, false) ; u.activate

I have enabled “Send all new users a welcome message with a quick start guide” in [http://forum.brickfield.org.uk/admin/site\_settings/category/uncategorized](http://forum.brickfield.org.uk/admin/site_settings/category/uncategorized)

However, emails are _not_ being sent to users being added in this way. They _are_ being sent to users I add through the web front end … (ie it’s not an email problem).

I want the users I add automatically to receive the welcome email - I am migrating a googlegroup and the welcome email will be useful in moving people. So does anyone know how I can alert the system to these added users being “new” users from the point of view of receiving the welcome message?

Thank you for any help

Tony

---

_[View the full topic](https://meta.discourse.org/t/how-to-manually-add-users-and-email-in-console-mode/26669)._
