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:
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.