# "Invalid" email address disables "send email" button on invite without message

**URL:** https://meta.discourse.org/t/invalid-email-address-disables-send-email-button-on-invite-without-message/253002
**Category:** UX
**Tags:** pr-welcome
**Created:** [January 26, 2023, 5:49pm UTC](https://meta.discourse.org/t/invalid-email-address-disables-send-email-button-on-invite-without-message/253002 "2023-01-26T17:49:11Z")
**Posts on this page:** 4
**Page:** 1

<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: [January 26, 2023, 5:49pm UTC](https://meta.discourse.org/t/invalid-email-address-disables-send-email-button-on-invite-without-message/253002/1 "2023-01-26T17:49:11Z")

</div>

So I just spent 5 minutes looking at the Invite User popup and wondering why that “Save and Send Email” button was greyed out.

Turns out I included a space after the email address when copy/pasting it.

 ![afbeelding](https://global.discourse-cdn.com/meta/original/4X/e/b/6/eb68d4063cd8810c2242723cbbdcf386dede18ba.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 30, 2023, 12:45am UTC](https://meta.discourse.org/t/invalid-email-address-disables-send-email-button-on-invite-without-message/253002/3 "2023-01-30T00:45:33Z")

</div>

Care to try a PR to strip the space?

(the proper solution here though is a combo)

1. Never grey out buttons, just let user click and fail
2. Strip emails server side

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [March 7, 2023, 4:52pm UTC](https://meta.discourse.org/t/invalid-email-address-disables-send-email-button-on-invite-without-message/253002/5 "2023-03-07T16:52:05Z")

</div>

> [@RGJ](#):
>
> Turns out I included a space after the email address when copy/pasting it.

A fix for the trailing space has been merged into core.

The work for never grey’ing out the buttons and displaying proper warnings instead is going to be done at a later time.

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [March 7, 2023, 4:52pm UTC](https://meta.discourse.org/t/invalid-email-address-disables-send-email-button-on-invite-without-message/253002/6 "2023-03-07T16:52:07Z")

</div>


