Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have noticed than in many popular email services such as GMail and Exchange, the email address of the user also contains the name of the sender.

For example will show up as John Smith <>.

Is there a way to determine the user name associated with an account by querying the server for that information? (in this case MS Exchange).

I want to create a script that automatically extracts the first and last name from their address to do personalize outgoing emails.

share|improve this question
Please clarify your question. Do you only have mails in the form and want to (magically) get their full name, even if it's not supplied through the mail? Or does the mail's sender actually appear as John Doe < In what form do you have the mails (or access to them, respectively)? What's your operating system? – slhck May 28 '13 at 21:04
@slhck: The only available data is the email address itself. The intended service is MS Exchange which should supply a full name every time. Access would be within the same domain. Unix Platform – Brandon Kreisel May 28 '13 at 21:10
I don't think this is doable at all. If you had the full mail, including its header where the From: field designates the e-mail address and the sender's full name, that'd be no problem to extract, but just with the e-mail address aloneā€¦ – slhck May 28 '13 at 21:14
your probably right, I was just holding out hope that there was some way of querying an Exchange or IMAP server for this information – Brandon Kreisel May 28 '13 at 21:16
That, I don't know. With Gmail it won't be possible, but you might have a change with an Exchange server you can query. But that's out of my knowledge, sorry :) – slhck May 28 '13 at 21:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.