# אין דוא"ל קבלת פנים ביצירת משתמש דרך API ב-N8N

**URL:** https://meta.discourse.org/t/no-welcome-email-on-user-creation-via-api-in-n8n/335262
**Category:** Support
**Created:** [8 בנובמבר,‏ 2024,‏ 10:23pm UTC](https://meta.discourse.org/t/no-welcome-email-on-user-creation-via-api-in-n8n/335262 "2024-11-08T22:23:22Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Nuenni](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nuenni/32/462415_2.png) [@Nuenni](https://meta.discourse.org/u/Nuenni)
#### Post date: [8 בנובמבר,‏ 2024,‏ 10:23pm UTC](https://meta.discourse.org/t/no-welcome-email-on-user-creation-via-api-in-n8n/335262/1 "2024-11-08T22:23:22Z")

</div>

H folks,

I have 2 Discourse forums running with automations.

### Community 1

Ony my first community it runs without any automation problems in [make.com](http://make.com).

 ![2024-11-08-Google Chrome-001968](https://global.discourse-cdn.com/meta/original/4X/f/8/6/f86ed45b36ddc55c97c8689c83ac3ada6fd07f74.png)

This automation sends the “Activate your account” welcome email.

 ![2024-11-08-Google Chrome-001970](https://global.discourse-cdn.com/meta/original/4X/0/8/3/0833197ed61df52e53f47a9091826bf72489bcf9.png)

### Community 2

I wanted to set up an N8N Workflow for this Community (instead of make), and the user is **fully created in discourse.**

 ![2024-11-08-Google Chrome-001972](https://global.discourse-cdn.com/meta/original/4X/4/3/6/436b4d7c00a470b90c561179e71766f23b013a60.png)

Here is a picture of the admin panel:

 ![2024-11-08-Google Chrome-001966](https://global.discourse-cdn.com/meta/original/4X/b/f/e/bfe0d242744ece2192f6e8138d3f45592ed79b19.png)  
But the system sends no email.

Here is my **JSON** :

```plaintext
{
  "email": "{{ $json.body.member.current.email }}",
  "name": "{{ $json.body.member.current.name }}",
  "username": "ToolGuide{{ Math.floor(10000 + Math.random() * 90000) }}",
  "password": "{{ $json.body.member.current.uuid }}",
  "active": "true",
  "approved": "true"
}

```

In the output, it confirms the crearion:

```plaintext
[
{
"success": 
true,
"active": 
true,
"message": 
"Dein Konto ist nun freigeschaltet und einsatzbereit.",
"user_id": 
13
}
]

```

### The Problem with Community 2

> The new User doesn’t get any email to activate his new account in discourse ;-(

I tried the manual registration with link and then i get the email, that worked fine.

On this Community 2 I have invite only activated, the api user is system with global rights.

 ![2024-11-08-Google Chrome-001974](https://global.discourse-cdn.com/meta/original/4X/e/c/6/ec6cf11410a52c52d6a50bc60d69ccc0f84727dc.png)

### Any ideas or suggetions?

Thx for help and greetings from Germany!

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [9 בנובמבר,‏ 2024,‏ 8:15am UTC](https://meta.discourse.org/t/no-welcome-email-on-user-creation-via-api-in-n8n/335262/2 "2024-11-09T08:15:32Z")

</div>

I would guess that since you’re passing `"active": "true"` the user is already being activated?

---

<div class="post-metadata">

### Author: ![Nuenni](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nuenni/32/462415_2.png) [@Nuenni](https://meta.discourse.org/u/Nuenni)
#### Post date: [9 בנובמבר,‏ 2024,‏ 9:09am UTC](https://meta.discourse.org/t/no-welcome-email-on-user-creation-via-api-in-n8n/335262/3 "2024-11-09T09:09:36Z")

</div>

Yes this is my setup what I copied from make there are the same approved and active with true variables.

I testet N8N with false. The I need to approve manually and the email for welcome and activate isn’t send too.

But today I got the reminder on my test email  
To activate 🤣 only the initial welcome to activate email is missing 🤔

 ![This image depicts a notification from Toolgui.de Community, inviting users to activate their accounts with a link. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/3/a/1/3a16a6fed0b02399553dc7488db559f35382afc1.jpeg)

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [10 בנובמבר,‏ 2024,‏ 6:44pm UTC](https://meta.discourse.org/t/no-welcome-email-on-user-creation-via-api-in-n8n/335262/4 "2024-11-10T18:44:37Z")

</div>

> [@Nuenni](#):
>
> only the initial welcome to activate email is missing

Can you see it in Admin - Emails - Sent?

---

<div class="post-metadata">

### Author: ![Nuenni](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nuenni/32/462415_2.png) [@Nuenni](https://meta.discourse.org/u/Nuenni)
#### Post date: [10 בנובמבר,‏ 2024,‏ 7:34pm UTC](https://meta.discourse.org/t/no-welcome-email-on-user-creation-via-api-in-n8n/335262/5 "2024-11-10T19:34:47Z")

</div>

No there I can’t see it either it’s not triggered but why 🤣

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [10 בנובמבר,‏ 2024,‏ 9:15pm UTC](https://meta.discourse.org/t/no-welcome-email-on-user-creation-via-api-in-n8n/335262/6 "2024-11-10T21:15:58Z")

</div>

I don’t believe active users are ever sent the email, so set active to false.

---

<div class="post-metadata">

### Author: ![Nuenni](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nuenni/32/462415_2.png) [@Nuenni](https://meta.discourse.org/u/Nuenni)
#### Post date: [11 בנובמבר,‏ 2024,‏ 10:43am UTC](https://meta.discourse.org/t/no-welcome-email-on-user-creation-via-api-in-n8n/335262/7 "2024-11-11T10:43:12Z")

</div>

Hey Robert,

youre right. I testet it with “false” on active and i get the email when the N8N Workflow runs. So i controlled the Make.workflow have a look:

## ACTIVE USERS. TRUE

 ![2024-11-11-Google Chrome-001978](https://global.discourse-cdn.com/meta/original/4X/8/9/4/8941a483ed8f168751a7ba49a852dce0592f867e.jpeg)

## LOG CONTROL

When i look into the log it gives me this back:

 ![2024-11-11-Google Chrome-001980](https://global.discourse-cdn.com/meta/original/4X/4/7/1/47135d571d374f3923c7b713d9af948c7457e735.png)

Why it sends me this back i dont know, as i sad in make. with “true” it worked fine 🙂

So thanks for solving it !

---

<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: [11 בדצמבר,‏ 2024,‏ 10:43am UTC](https://meta.discourse.org/t/no-welcome-email-on-user-creation-via-api-in-n8n/335262/8 "2024-12-11T10:43:20Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
