Programs should trim whitespace on email address fields

Related products: None

If an email address is entered into the reply to, from email, or To fields, and there is a leading or trailing whitespace, the email is accepted, but when the program attempts to run, the email will fail to send for anyone due to the email address being considered invalid.

 

It’s a very simple mistake for someone to paste in an email with a single leading or trailing whitespace, so rather than treating the address as “valid” in the sense that it can be saved, and simultaneously “invalid” in the sense that it blocks outreach, Gainsight should automatically look for an trim the whitespace. This could be safely done because an email address will never start or end with whitespace.

Alternatively, though not quite as user-friendly as solutions go, a simple validation error could be used. Do not allow for addresses with leading/trailing whitespace to be saved, and throw an error message calling out that error.

@tyler_tew Thanks for bringing this up! we will consider this and push the fix soon. I will update here once we push this to release. 

 


This came up today with a customer. Hoping we can add some validation for this. They typed or pasted in a from email and it had a trailing space. Sending a test preview didn’t indicate any sort of error.


We will pick it up soon. Thanks for sharing.