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