Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Can email addresses contain apostrophes?

I've come across an email address with an apostrophe - what do I do?

4:07 pm on Jul 19, 2006 (gmt 0)

Full Member

10+ Year Member

joined:June 29, 2005
votes: 0

Here's the situation.

We've got an online application, with a place where people can register (Supply their name, email, etc).

Some fella is complaining that it won't accept his email address. After looking into it, turns out his email address is joe.o'bloggs@domain.com. It's got an apostrophe in it.

I've never come across this before! The validation we've got doesn't allow that sort of punctuation.

(To avoid blame, I personally didn't write this application, although I must admit I would have done it exactly the same way!)

My question is - is it common for email addresses to contain apostrophes? Or am I allowed to tell him to get a proper email address (allocated to him by his company)? I don't mind modding our application to allow this, but if this is going to be a one-off, I don't know if it's worth my effort.

I've hunted around for specifications on what email addresses can contain, but no joy. If anyone's got one, please sticky me if you can't post it!

Cheers guys,


(Forgive me if this is in the wrong forum...I tried my best!)

4:32 pm on July 19, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:July 14, 2004
votes: 6

RFC2821 and RFC2822 state clearly that only 7bit ASCII characters are allowed in Internet mail addresses.

it looks like the --> ' <--- is allowed...

Here's a list of all the characters and a short explaination...


hope that helps...

[edited by: trillianjedi at 4:39 pm (utc) on July 19, 2006]
[edit reason]
[1][edit reason] Please don't obfuscate links - if within TOS, link in full. Thanks ;) [/edit]

4:42 pm on July 19, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Nov 3, 2003
votes: 0

[edit: beaten to the answer! Anyway, here is what I found]

RFC 2822:

...the local-part of the e-mail may use any of these ASCII characters:

* Uppercase and lowercase letters

 * The digits 0 through 9

* The characters,! # $ % & ' * + - / =? ^ _ ` {  } ~

 * The character "." provided that it is not the first or last character in the local-part.

You can read the full specification at [tools.ietf.org ]

6:18 am on July 20, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 28, 2006
votes: 0

E-mail addresses can be a good deal more complicated than that, actually. For instance, "bob@myhost.com"@example.com is a perfectly valid e-mail address. It is identical to "bob\@myhost.com"@example.com and "bob@myhost.com"@eXaMpLe.CoM, but may be different from "Bob@myHost.com"@example.com. That said, it's a pretty rare web form which can handle such monstrosities.

RFC 2822 [faqs.org] is a fun read, if you like that sort of thing. The ROI drops significantly the closer you get to full RFC compliance, and I've yet to come across anyone with an e-mail address which actually required a quoted-string local-part (a dot-atom local-part covers every e-mail address I've ever seen, and then some), but it's nice to know the sort of corner cases you're leaving out. :)

dot-atom, local-part, and quoted-string are all defined in RFC 2822. Really, go read it. It hasn't been mentioned by three separate people by coincidence. ;)

10:06 am on July 20, 2006 (gmt 0)

Full Member

10+ Year Member

joined:June 29, 2005
votes: 0

Cheers guys! What a great response!

I get a feeling this is going to cause us a tad more work...we've got loads of applications here that use email addresses in some form...suppose I need to go through them all and make sure they can accept all these crazy...*ahem*...obscure addresses!

Thanks for all the info guys - those links really help!



Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members