# Email is not allowed

**URL:** <https://meta.discourse.org/t/email-is-not-allowed/89036>\
**Category:** Product Support\
**Created:** [03.Июнь.2018 08:56:42 UTC](https://meta.discourse.org/t/email-is-not-allowed/89036 "2018-06-03T08:56:42Z")\
**Posts on this page:** 1\
**Showing post:** 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:** [03.Июнь.2018 08:56:42 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?

---

_[View the full topic](https://meta.discourse.org/t/email-is-not-allowed/89036)._
