# Should importers import users with invalid email addresses by default?

**URL:** https://meta.discourse.org/t/should-importers-import-users-with-invalid-email-addresses-by-default/71424
**Category:** Development
**Created:** [2017 年 10 月 4 日午後 8:31 UTC](https://meta.discourse.org/t/should-importers-import-users-with-invalid-email-addresses-by-default/71424 "2017-10-04T20:31:51Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2018 年 5 月 2 日午前 7:13 UTC](https://meta.discourse.org/t/should-importers-import-users-with-invalid-email-addresses-by-default/71424/7 "2018-05-02T07:13:01Z")

</div>

Are you sure the error is on the email? I just tried this on the rails console and it worked fine

```rails
User.create!(email: "invalid#{SecureRandom.hex}@no-email.invalid", username: "random")

```

---

_[View the full topic](https://meta.discourse.org/t/should-importers-import-users-with-invalid-email-addresses-by-default/71424)._
