Click here to Skip to main content
15,905,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can anyone please tell me how to get the first name and lastname from their mail ids.?

have any idea....
Posted
Comments
[no name] 29-Mar-12 7:36am    
Can you clarify which kind of email id it is? Gmail id, yahoo id, facebook id, etc...
K.Mohamed Sujaludeen 30-Mar-12 2:33am    
it will be any domains

You can't be sure to get any personal data from an email ID: For example, I have a number of email addresses on different domains (Redacted so they aren't of use to spambots:
Pxxxx.Gxxxxx@sxxxx-mxxxx.com
TheGxxxx@txxxxxxx.net
DontSendMeAnyCrap@xxxxxx.com
e481576@rppkn.com
All of them work; all of them are valid. The last one will work for ten minutes, then die.
Only the first would give you any personal information

It is possible that you may get first and last name from an email:
C#
string[] parts = emailStriung.Split('@');
if (parts.Length > 1)
   {
   names = parts.Split('.');
   if (names.Length > 1)
      {
      string firstName = names[0];
      string lastName = names[1];
      }
   }
But even then it is a cultural thing - the first name may be the family name in some cultures.
 
Share this answer
 
Comments
K.Mohamed Sujaludeen 30-Mar-12 2:35am    
Thanks for your suggesion.

this result will give as only the part of the mail id. actually i need first name and last name
for ex, if my mail id will be suja123@gmail.com but while register the mail id, i gave firstname as "md" and lastname as "suja". so i need to retrive these information... could you help me..
OriginalGriff 30-Mar-12 4:07am    
I doubt very much if you can. That would require Google giving out that info, or making it available at the very least. In many countries, that would be illegal under legislation such as the UK Data Protection Act, which forbid the release of personal information.

Besides, that is valuable information for marketing purposes - they might sell it to you, but I don't think they will give it away.
Monjurul Habib 30-Mar-12 4:50am    
5!
Hope this helps if yes then accept and vote the answer

http://linkedintoolkit.codeplex.com/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900