# Welcome email not sent when adding user from console

**URL:** <https://meta.discourse.org/t/welcome-email-not-sent-when-adding-user-from-console/59765>\
**Category:** Product Support\
**Created:** [23.Март.2017 13:36:02 UTC](https://meta.discourse.org/t/welcome-email-not-sent-when-adding-user-from-console/59765 "2017-03-23T13:36:02Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![nordize](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@nordize](https://meta.discourse.org/u/nordize)\
**Post date:** [23.Март.2017 13:36:02 UTC](https://meta.discourse.org/t/welcome-email-not-sent-when-adding-user-from-console/59765/1 "2017-03-23T13:36:02Z")

</div>

I’m trying to create users manually (I have a few reasons for doing this). I tried various combinations of

- `User.create()`
- `User.new()`
- setting the `active:true` or `approved:true` or `approve_by_id:1` or `password:'non-empty-string'` in the arguments of the above
- calling `.approve(<user>, true)` ← according to [user.rb#L270](https://github.com/discourse/discourse/blob/e8fc8f0bb644f97d0adb535fdfbb352bce26c2a1/app/models/user.rb#L270) it should trigger an email?
- calling `.activate()`

While new users are created fine, no email is ever sent to the new user. I can skip the `.activate()` step and then go to the GUI and click on the `Send activation email` which does send them an email to activate their account. Getting an activatin email is still not great, because the user does not know their password and involves a lot of mouse clicking. I would then either have to send them a separate email with their password, or edit the activation email to tell them to change their password … neither of those is really great.

What I really want is to send them the _“Welcome, please choose a password”_ email that has a link taking them straight to the screen where they choose a new password.

How can I trigger that email from the console?

---

_[View the full topic](https://meta.discourse.org/t/welcome-email-not-sent-when-adding-user-from-console/59765)._
