# Grant admin bevestigingsmail niet verzonden

**URL:** https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392
**Category:** Support
**Created:** [15 maart 2025 om 12:31 UTC](https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392 "2025-03-15T12:31:49Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Francis\_Martens](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/francis_martens/32/455429_2.png) [@Francis\_Martens](https://meta.discourse.org/u/Francis_Martens)
#### Post date: [15 maart 2025 om 12:31 UTC](https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392/1 "2025-03-15T12:31:49Z")

</div>

I found a couple of topics on the subject, but none are related to the problem I’m encountering.

I want to grant admin access to a colleague, so I head over to users → x → grant admin.

UI responds that the email is sent and I do expect it in my mail box as I’m the site admin. Alas no mail (also not in spam)

So I check the email log (sent), and I can’t see that the mail is sent - I can’t find any mail of type ‘admin\_confirmation\_message’

What could be the reason?  
How can I debug?

Francis

---

<div class="post-metadata">

### Author: ![Timelord](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Timelord](https://meta.discourse.org/u/Timelord)
#### Post date: [15 maart 2025 om 14:23 UTC](https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392/3 "2025-03-15T14:23:38Z")

</div>

What is the status of the email you see in admin/email/sent

It should look something like this’

(Post ID: 8032)  
/ `250 Ok 010d019599fbc428-94ef9ff4-c956-47d0-8d5a-e5f76f6517a8-000000`

Also, what happens if you use the test email functionality, and send to [mail-tester.com](http://mail-tester.com)

---

<div class="post-metadata">

### Author: ![francis\_exalate](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/francis_exalate/32/461390_2.png) [@francis\_exalate](https://meta.discourse.org/u/francis_exalate)
#### Post date: [15 maart 2025 om 19:07 UTC](https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392/4 "2025-03-15T19:07:59Z")

</div>

That’s the point.  
There is no entry in the log.

Sending a test mail works without issue.

---

<div class="post-metadata">

### Author: ![francis\_exalate](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/francis_exalate/32/461390_2.png) [@francis\_exalate](https://meta.discourse.org/u/francis_exalate)
#### Post date: [15 maart 2025 om 19:12 UTC](https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392/5 "2025-03-15T19:12:00Z")

</div>

The mail sent to mail-tester is getting a score of 10/10  
…

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [15 maart 2025 om 19:15 UTC](https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392/6 "2025-03-15T19:15:13Z")

</div>

> [@Francis\_Martens](#):
>
> How can I debug?

Check the logs of your sending email provider.

Yesterday, someone contacted me with a similar issue. The recipient’s email provider rejected the email, and this was recorded in the sending provider’s logs.

> [@francis\_exalate](#):
>
> Sending a test mail works without issue.

Is the test email sent to the same email address?

---

<div class="post-metadata">

### Author: ![Francis\_Martens](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/francis_martens/32/455429_2.png) [@Francis\_Martens](https://meta.discourse.org/u/Francis_Martens)
#### Post date: [15 maart 2025 om 19:32 UTC](https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392/7 "2025-03-15T19:32:18Z")

</div>

> Check the logs of your sending email provider.

There is no log because no mail is sent.

> Is the test email sent to the same email address?

Yes - and well received.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [15 maart 2025 om 19:33 UTC](https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392/8 "2025-03-15T19:33:27Z")

</div>

I missed the part where the mail was literally not sent.

Well, no clue then 😔 Sorry!

---

<div class="post-metadata">

### Author: ![Timelord](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Timelord](https://meta.discourse.org/u/Timelord)
#### Post date: [15 maart 2025 om 20:26 UTC](https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392/9 "2025-03-15T20:26:27Z")

</div>

If this is a one off thing, then I would just grant admin rights via CLI

---

<div class="post-metadata">

### Author: ![Francis\_Martens](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/francis_martens/32/455429_2.png) [@Francis\_Martens](https://meta.discourse.org/u/Francis_Martens)
#### Post date: [15 maart 2025 om 21:05 UTC](https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392/10 "2025-03-15T21:05:35Z")

</div>

> I would just grant admin rights via CLI

CLI - that is new to me. If you have any useful links how to get access to the cli and documentation on the subject - thanks for sharing.

Independently from solving the immediate problem of granting the user admin access, I would like to understand how I could debug the fact that the email is not being send. It might be useful to identify a bug and improve discourse?

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [15 maart 2025 om 21:09 UTC](https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392/11 "2025-03-15T21:09:11Z")

</div>

You can check out this:

> [@What is the Rails command to create an admin user in Discourse?](https://meta.discourse.org/t/what-is-the-rails-command-to-create-an-admin-user-in-discourse/147545):
>
> As told in [this](https://meta.discourse.org/t/how-to-manually-add-users-and-email-in-console-mode/26669/9) post, when I run this command to create an admin user on a new disco installation, thru rails console (without having to activate thru email, for just once, for one admin): u = User.create!(username: ‘xx’, email: ‘xx@xx.com’, password: ‘xxx’, mailing\_list\_mode: ‘true’);u.approve(Discourse.system\_user, false) ; u.activate I get this error: [1] pry(main)\> =“u = User.create!(username: 'user1’, email: ‘user1@email.com’, password: ‘Password12345’, mailing\_list\_mode: ‘true’);u.app…

---

<div class="post-metadata">

### Author: ![Timelord](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Timelord](https://meta.discourse.org/u/Timelord)
#### Post date: [15 maart 2025 om 22:12 UTC](https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392/12 "2025-03-15T22:12:26Z")

</div>

Here you go

> [@Create an admin account from the console](https://meta.discourse.org/t/create-an-admin-account-from-the-console/17274):
>
> bookmark This guide provides instructions for creating an admin account or granting admin privileges using the console in a self-hosted Discourse installation. person_raising_hand Required user level: System Administrator warning Console access required So you want to create/grant Admin privileges or reset user password from console? Great, let’s get started! This guide will cover the following: Accessing the console Creating a new account with admin privileges Resetting an existin…

---

<div class="post-metadata">

### Author: ![Francis\_Martens](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/francis_martens/32/455429_2.png) [@Francis\_Martens](https://meta.discourse.org/u/Francis_Martens)
#### Post date: [16 maart 2025 om 07:27 UTC](https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392/13 "2025-03-16T07:27:14Z")

</div>

What would be the reason that there is no mail sent? A configuration setting somewhere? How can I debug it?

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [16 maart 2025 om 10:53 UTC](https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392/14 "2025-03-16T10:53:51Z")

</div>

its a bit long story.  
Better you search this meta side (with or without the help of AI) for related topics. You ought to spend some time on this, as there is no sure steps for it. There are multiple things, as far as my limited knowledge says.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [16 maart 2025 om 12:58 UTC](https://meta.discourse.org/t/grant-admin-confirmation-mail-not-sent/357392/15 "2025-03-16T12:58:20Z")

</div>

Does it work if you use another admin account (or if you change the admin’s email address) to give the admin privileges to a user?
