Can email address have an underscore

Yes, an email address can have an underscore (_) in it. In fact, the underscore is a valid character in an email address, as specified in the Internet Engineering Task Force (IETF) Request for Comments (RFC) 5322, which defines the format of email addresses.

According to the RFC, an email address can contain the following characters:

The underscore (_) is one of the special characters that is allowed in an email address. It is often used to separate words or to create a more readable email address.

For example, the following are all valid email addresses:

However, it's worth noting that some email providers or systems may have specific rules or restrictions on the use of underscores in email addresses. For example, some providers may not allow underscores in the local part of the email address (i.e., the part before the @ symbol). It's always a good idea to check with your email provider or system administrator if you have any questions about the use of underscores in email addresses.