Are there any conventions or accepted best practices for how to format an email "to" field.
For example, in gmail you can do things like
"John Doe <[email protected]>, [email protected]"
I am guessing there has to be an accepted standard somewhere, but I can't find it because searching for "email to field" on google is a pointless task.
I am asking because I am building a messaging system, and I can't figure out what convention I should allow my users to use in the "to" field. Some people use things like
"John Doe <[email protected],[email protected]>"
and that's not a valid format.
Also, I am using Ruby, so if anyone knows a gem to automate this, I would appreciate it.