Capital letters don't change where your email goes

Email addresses are case-insensitive by the standard that runs the internet. This means james@example.com, James@example.com, and JAMES@EXAMPLE.COM all reach the same inbox. Your mail server treats uppercase and lowercase letters as identical.

However, the part before the @ sign — called the local part — has a technical exception. Some mail servers do recognize case differences in the local part, though almost none actually use this feature. In practice, you should assume your address works the same way no matter how you capitalize it.

The domain part after the @ sign (example.com) is always case-insensitive. Browsers, mail clients, and servers all convert it to lowercase automatically.

Key Takeaways

  • Email addresses work the same whether you type them in uppercase, lowercase, or mixed case — the mail reaches the same inbox.
  • The domain part (after the @) is always treated as lowercase by every mail server on the internet.
  • The local part (before the @) is technically case-sensitive in the email standard, but almost no real mail server uses this feature.
  • For SMTP, IMAP, and Git configuration, use lowercase to avoid confusion and may support compatibility with older systems.
  • If a service rejects your address because of capitalization, the problem is with that service's validation, not with email itself.

Why lowercase is the safer choice for configuration

When you set up SMTP or IMAP in code or a configuration file, use lowercase for your email address. Most mail servers and authentication systems expect lowercase, and some older systems will reject uppercase letters outright.

Git configuration is the same. If you set your Git user email with capitals, some platforms may not recognize it as the same address when you push commits. GitHub, GitLab, and other services normalize addresses to lowercase internally, so james@example.com and James@example.com appear as different users in your local Git config but the same person on the server.

The safest rule: store and transmit email addresses in lowercase everywhere. It costs nothing and prevents surprises.

What happens when you mix cases in SMTP authentication

SMTP servers check your username and password during login. The username is usually your full email address. If you type James@example.com but your account is registered as james@example.com, some servers will reject the login even though the addresses are technically the same.

This happens because the SMTP server compares the string you sent character-by-character against what's stored in its database. If the database holds lowercase and you send uppercase, the comparison fails. The server doesn't normalize your input first — it expects you to match exactly.

When you configure SMTP in your process, use the exact case your mail provider gave you, or use lowercase if you're unsure. Most providers list your address in lowercase on their settings page.

IMAP and case sensitivity in practice

IMAP works the same way as SMTP for authentication. You log in with a username (usually your email address) and password. The server compares what you send against what it has stored.

Once you're logged in, IMAP folder names can be case-sensitive depending on the server. Gmail treats folder names as case-insensitive, but some other providers don't. If you're writing code that creates or references folders, check your provider's documentation.

For the login itself, use lowercase to match what the server expects.

Email validation and why some services reject capitals

Some websites and applications have broken email validation. They may reject an address because it contains uppercase letters, even though uppercase is perfectly valid.

This is a bug in the service, not a problem with your email. The email standard (RFC 5321) says the local part is case-insensitive in practice, and the domain part is always case-insensitive. A service that rejects capitals is being overly strict.

If a form rejects your address with capitals, try submitting it in lowercase. If that works, the service has a validation problem. You can report it to the service's support team, but for now, lowercase is your workaround.

How to format email addresses in code and configuration files

In SMTP configuration, use lowercase:

smtp_user = james@example.com smtp_password = your_password

In IMAP configuration, use lowercase:

imap_user = james@example.com imap_password = your_password

In Git configuration, use lowercase:

git config user.email "james@example.com"

In environment variables or secrets files, use lowercase. This prevents authentication failures caused by case mismatches.

Frequently Asked Questions

Will my email bounce if someone sends it to me with capital letters?

No. Mail servers treat the address as case-insensitive, so the message reaches you regardless of capitalization. The sender can type James@Example.com and it will arrive at james@example.com without any problem.

Should I worry about case when I give my email address to someone?

No. You can write it however you want — uppercase, lowercase, or mixed. The person receiving it can type it however they want too. The mail will reach the same inbox either way.

What if my mail provider's website shows my address in uppercase?

Use lowercase in your code and configuration anyway. The provider's display doesn't change how the server actually stores or authenticates your address. Lowercase is the standard and works everywhere.

Can I use different cases for the same address in different applications?

Technically yes, but don't. Use the same case (lowercase) everywhere. This prevents confusion, makes debugging easier, and avoids authentication failures if one system is stricter than another.

Does case matter for email forwarding rules?

No. If you set up a rule to forward mail from james@example.com, it will catch James@example.com, JAMES@EXAMPLE.COM, and any other capitalization. The mail server normalizes the address before checking the rule.