Determine if email is from free email provider or ISP

随声附和 提交于 2021-02-05 09:25:28

问题


Is there a way in C# to determine if a email address is from an isp or free email service?

I want to determine if the email is corporate or personal, similar to how yammer does it on their sign up form.


回答1:


There is nothing C# can tell you about if an email address if a personal or business email address or the distinction. Infact, no language can tell you that! This requires some coding on your part and whether or not it is possible. But don't think it is really possible because, as @John Saunders has said, what if people are using gmail for business? But also their employees could have their own gmail address for personal usage... so how would you find the distinction?




回答2:


The easiest way is by having a list of all non-corporate addresses and comparing your address extension to that list. If it's not found, it's not from a free email service.

However, a number of companies use personal style addresses. And it's not that hard to set up your own mail server with your own domain name. Hell, I had to setup a mail server for one of my classes in college, and domain names are cheap on sites like GoDaddy. If I wanted to, I could probably setup a mail server over the weekend.



来源:https://stackoverflow.com/questions/19948736/determine-if-email-is-from-free-email-provider-or-isp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!