如何使用电子邮件ID获取名字和姓氏 [英] How to get First name and lastname using email ids

查看:322
本文介绍了如何使用电子邮件ID获取名字和姓氏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以告诉我如何从其邮件ID中获取名字和姓氏吗??

有任何想法....

Can anyone please tell me how to get the first name and lastname from their mail ids.?

have any idea....

推荐答案

您不能确保从电子邮件ID中获取任何个人数据:例如,我有许多电子邮件不同域上的地址(已删除,因此它们不适合用于发出垃圾邮件:
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.


希望这会有所帮助,然后接受并投票回答

http://linkedintoolkit.codeplex.com/ [ ^ ]
Hope this helps if yes then accept and vote the answer

http://linkedintoolkit.codeplex.com/[^]


这篇关于如何使用电子邮件ID获取名字和姓氏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆