如何根据email账户取得邮件服务器登录域名(java)
PHPz
PHPz 2017-04-17 11:57:15
0
1
623

如题,比如我的email账户是XXXX@126.com,则邮件服务器的登录域名是mail.126.com。有没有一种通用的方法可以根据email账户,来直接得到域名。

PHPz
PHPz

学习是最好的投资!

reply all(1)
洪涛

If the "login domain name" you are talking about refers to the domain name of web mail, then there is no general method, because this thing is a website, but "by chance" you can see your email from this website That's it, there is no standard or specification that stipulates that the domain name and email address of web mail need to be related.
If you are talking about the address of the mail server, then you have to go to the DNS server to query the 126.com type record under the domain name MX. Normally, a lot of mail transfer server addresses will be returned to you, but I I don’t know what the use of this thing is in your application scenario, because this bunch of server addresses are prepared for mutual transfer of emails between email servers.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!