function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Cody Sanders 33Cody Sanders 33 

Underscores in the domain name errors

I had a ticket from a salesman come in the other day saying that they couldn't add an email in because salesforce locked him out due to an underscore in the domain name. Is this a salesforce-native validation and if so, is there a work-around? The last thing I want is for people to be forced to input wrong information.
pconpcon
According to the Email RFC [1][2], the domain portion of the email cannot have underscores in it.  This is an invalid email address and Salesforce does not permit saving an email address with this when using the Email field type.  You can have underscores in the local part of the email address [2].

[1] https://tools.ietf.org/html/rfc6531
[2]  https://tools.ietf.org/html/rfc6532
[3] https://en.wikipedia.org/wiki/Email_address#Local_part