# Email is not allowed

**URL:** https://meta.discourse.org/t/email-is-not-allowed/89036
**Category:** Support
**Created:** [June 3, 2018, 8:56am UTC](https://meta.discourse.org/t/email-is-not-allowed/89036 "2018-06-03T08:56:42Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [June 3, 2018, 8:56am UTC](https://meta.discourse.org/t/email-is-not-allowed/89036/1 "2018-06-03T08:56:42Z")

</div>

Hello,

I’m trying to change a user’s email but it fails. Here’s what I tried…

- through the Web at `/users/foo/preferences/email` where I get “Email is not allowed.” on a Gmail address (although Gmail is not in the list of forbidden domains). I test with an admin account and impersonating the user.
- through the API with:  
`curl -v -X PUT "https://#{api_host}/users/#{username}/preferences/email" -H "Content-Type: multipart/form-data;" -F "api_key=#{client.api_key}" -F "api_username=#{client.api_username}" -F email=#{new_email}`

I’m using [v2.0.0.beta10 +279](https://github.com/discourse/discourse/compare/7fc8a36529558630d3deed42511ed41476d657f1...tests-passed). This used to work, or am I doing something wrong?

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [June 3, 2018, 9:20am UTC](https://meta.discourse.org/t/email-is-not-allowed/89036/5 "2018-06-03T09:20:25Z")

</div>

I found out the email was in the ‘screened\_emails’. I removed it from there and that solved the issue. Thank you very much!

---

<div class="post-metadata">

### Author: ![Julian\_Somoza](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@Julian\_Somoza](https://meta.discourse.org/u/Julian_Somoza)
#### Post date: [August 21, 2018, 5:21pm UTC](https://meta.discourse.org/t/email-is-not-allowed/89036/6 "2018-08-21T17:21:29Z")

</div>

And what’s screened\_emails? How to access this table? via rails c?

---

<div class="post-metadata">

### Author: ![mikechristopher](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikechristopher/32/89135_2.png) [@mikechristopher](https://meta.discourse.org/u/mikechristopher)
#### Post date: [August 21, 2018, 5:27pm UTC](https://meta.discourse.org/t/email-is-not-allowed/89036/7 "2018-08-21T17:27:20Z")

</div>

@Julian_Somoza  
In Your Admin area within the forum

> Logs \> Screened Emails

/admin/logs/screened\_emails

---

<div class="post-metadata">

### Author: ![Julian\_Somoza](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@Julian\_Somoza](https://meta.discourse.org/u/Julian_Somoza)
#### Post date: [August 21, 2018, 5:28pm UTC](https://meta.discourse.org/t/email-is-not-allowed/89036/8 "2018-08-21T17:28:15Z")

</div>

I see that! And the emails was there… Thanks a lot!

---

<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: [May 21, 2019, 7:32pm UTC](https://meta.discourse.org/t/email-is-not-allowed/89036/9 "2019-05-21T19:32:08Z")

</div>

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