Tell me, please, how can I implement the transition to the user's email client page?

The capture form with which the user goes to the thank you page is implemented. On the thank you page there is a button " Check Mail ", followed by a letter confirming registration. How to implement the transition to the mail, so that the person clicked and went to his default mail client? Thank.

  • If you are given an exhaustive answer, mark it as correct (a daw opposite the selected answer). - Nicolas Chabanovsky

1 answer 1

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

  • one
    Although the link can find the answer to the question, it is better to point out the most important thing here, and give the link as a source. If the page to which the link leads will be changed, the response link may become invalid. - From the queue of checks - ThisMan
  • @ThisMan thanks! Already corrected. Although I have doubts with the fact that the Source will change the link, but still. - Yurii Manziuk
  • Thanks for the decision. However, I did not indicate that we have regular landing pages and not sites with engines. Is there a solution in the form of a js script for a one-page? - Zerkella
  • @Zerkella sorry, but I'm not really a specialist in js. I only shared what I was really dealing with. Although, I think, if you drive it all into some container in js ' e itself, then everything can earn - Yurii Manziuk
  • Thanks for the help - Zerkella