# Migration strategy and "account created" mail

**URL:** <https://meta.discourse.org/t/migration-strategy-and-account-created-mail/44976>\
**Category:** Migration\
**Created:** [May 29, 2016, 8:27pm UTC](https://meta.discourse.org/t/migration-strategy-and-account-created-mail/44976 "2016-05-29T20:27:41Z")\
**Posts on this page:** 5\
**Page:** 1

## AI-generated summary

[francescomalatesta](/t/-/44976/1) is migrating a basic self-built forum (with only email, name, and password) to Discourse and seeks advice on strategy. Their goal is to import users and posts via API, then notify users to set new passwords. They initially wondered whether the "account created" email (sent when manually creating users) would work for API-created accounts — but discovered it doesn’t trigger automatically. In [post 2](/t/-/44976/2), they share their solution: 1) Import users and content via API; 2) Set the "active" field to 1 during user creation to skip the default signup email; 3) Send a custom migration notification email directing users to the password recovery page to set a new password. This avoids confusion with the default signup flow while ensuring users regain access. They conclude with a cheerful note, expressing appreciation for Discourse. This workaround effectively handles bulk migration without relying on Discourse’s built-in email triggers for new accounts.

<div class="post-metadata">

**Author:** ![francescomalatesta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/francescomalatesta/32/121753_2.png) [@francescomalatesta](https://meta.discourse.org/u/francescomalatesta)\
**Post date:** [May 29, 2016, 8:27pm UTC](https://meta.discourse.org/t/migration-strategy-and-account-created-mail/44976/1 "2016-05-29T20:27:41Z")

</div>

Hi everyone,  
first post here. I tried to search for something useful but I did not had any luck. I need an advice about my migration strategy.

I have a forum developed by myself. A **very basic forum, no social logins, only email addresses, names and passwords**. Soon, I will need to migrate it to Discourse.

What I want to do:

- import users one by one, creating a new account for them automatically;
- send them an email to let them choose a new password;

Now, I would like to use the API calls to do this, both for users and related posts. My only question is: if the _signup_ mail is used for new users that sign up by themselves, **what the “account created”** email does?

I imagined that the “account created” email is sent when I manually create them. Am I wrong? What should I do to reach my objective?

Thank you so much for your help, in advance.

Really love this platform 😀

---

<div class="post-metadata">

**Author:** ![francescomalatesta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/francescomalatesta/32/121753_2.png) [@francescomalatesta](https://meta.discourse.org/u/francescomalatesta)\
**Post date:** [May 30, 2016, 10:26am UTC](https://meta.discourse.org/t/migration-strategy-and-account-created-mail/44976/2 "2016-05-30T10:26:49Z")

</div>

For everyone will need an help for a similar problem in the future, I figured out a solution.

1. Add every user using APIs, the same goes for topics and posts;
2. When creating the user, set the “active” field to 1, in order to have an already active user. By doing this, he/she will not receive any email;
3. Send a custom email to every user in which I notify about the migration, and invite him to change his/her password by going to the password recovery page;
4. Ta dah!

Have a nice day everyone 🙂

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [January 25, 2019, 6:27pm UTC](https://meta.discourse.org/t/migration-strategy-and-account-created-mail/44976/3 "2019-01-25T18:27:53Z")

</div>

Automatically bumped on January 25, 2019, 6:27pm UTC



---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [January 27, 2022, 4:00am UTC](https://meta.discourse.org/t/migration-strategy-and-account-created-mail/44976/4 "2022-01-27T04:00:03Z")

</div>

Automatically bumped on January 27, 2022, 4:00am UTC



---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [January 27, 2022, 6:36am UTC](https://meta.discourse.org/t/migration-strategy-and-account-created-mail/44976/5 "2022-01-27T06:36:53Z")

</div>

Closed on January 27, 2022, 6:36am UTC


