How to get the address and name of the mail, using the email address that the user told you? Catch a sign in CSV format:
"почтовый домен", "название почтового сервиса","адрес для входа в почту" "mail.ru","Почта Mail.Ru","https://e.mail.ru/" "bk.ru","Почта Mail.Ru (bk.ru)","https://e.mail.ru/" "list.ru","Почта Mail.Ru (list.ru)","https://e.mail.ru/" "inbox.ru","Почта Mail.Ru (inbox.ru)","https://e.mail.ru/" "yandex.ru","Яндекс.Почта","https://mail.yandex.ru/" "ya.ru","Яндекс.Почта","https://mail.yandex.ru/" "yandex.ua","Яндекс.Почта","https://mail.yandex.ua/" "yandex.by","Яндекс.Почта","https://mail.yandex.by/" "yandex.kz","Яндекс.Почта","https://mail.yandex.kz/" "yandex.com","Yandex.Mail","https://mail.yandex.com/" "gmail.com","Gmail","https://mail.google.com/" "googlemail.com","Gmail","https://mail.google.com/" "outlook.com","Outlook.com","https://mail.live.com/" "hotmail.com","Outlook.com (Hotmail)","https://mail.live.com/" "live.ru","Outlook.com (live.ru)","https://mail.live.com/" "live.com","Outlook.com (live.com)","https://mail.live.com/" "me.com","iCloud Mail","https://www.icloud.com/" "icloud.com","iCloud Mail","https://www.icloud.com/" "rambler.ru","Рамблер-Почта","https://mail.rambler.ru/" "yahoo.com","Yahoo! Mail","https://mail.yahoo.com/" "ukr.net","Почта ukr.net","https://mail.ukr.net/" "i.ua","Почта I.UA","http://mail.i.ua/" "bigmir.net","Почта Bigmir.net","http://mail.bigmir.net/" "tut.by","Почта tut.by","https://mail.tut.by/" "inbox.lv","Inbox.lv","https://www.inbox.lv/" "mail.kz","Почта mail.kz","http://mail.kz/"
Of course, this is not all mail services. I recommend to look into the list of email addresses of your users and add exactly the services they use. You can create a table and import a CSV file into MySQL using the following command:
CREATE TABLE email_services(domain CHAR(24) NOT NULL,name CHAR(32) NOT NULL,url CHAR(64) NOT NULL); LOAD DATA LOCAL INFILE '/home/user/services.csv' INTO TABLE email_services FIELDS TERMINATED BY ',' ENCLOSED BY '"';
And then you simply select the mail domain from the email address, find the name and address of the mail service in the table, and show them to the user.
You can write the name of the service, you can decline the names and make a beautiful inscription "Go to Yandex.Post u " or simply show the email itself. The main thing is that there was a link to his "Inbox".
a source