According to the user input email jump to the corresponding e-mail home

Source: Internet
Author: User

User registration needs to jump to their registration to fill in the mailbox to collect the verification mail, then how to judge the user input according to the email to determine the type of e-mail users, so that the direct jump to change the home page of the e-mail service provider to facilitate direct landing. The following function basically lists most of the domestic e-mail service providers, should be able to meet this demand.

Function: According to the user input email jump to the corresponding e-mail home   Function gotomail ($mail) {       $t =explode (' @ ', $mail);       $t =strtolower ($t [1]);      if ($t = = ' 163.com ') {           return  ' mail.163.com ';       }else if ($t = = ' vip.163.com ') {          return  ' Vip.163.com ';      }else if ($t = = ' 126.com ') {           return  ' mail.126.com ';      }else if ($t = = ' Qq.com ' | | $t = = ' Vip.qq.com ' | | $t = = ' foxmail.com ') {          return  ' mail.qq.com ';      }else if ($t = = ' gmail.com ') {           return  ' mail.google.com ';      }else if ($t = = ' sohu.com ') {           return  ' mail.sohu.com ';      }else if ($t = = ' Tom.com ') {          return  ' mail.tom.com ';       }else if ($t = = ' vip.sina.com ') {          return   ' vip.sina.com ';      }else if ($t = = ' sina.com.cn ' | | $t = = ' sina.com ') {          return  ' mail.sina.com.cn ';      }else if ($t = = ' tom.com ') {           return  ' mail.tom.com ';      }else if ($t = = ' yahoo.com.cn ' | | $t = = ' yahoo.cn ') {          return  ' mail.cn.yahoo.com ';      }else if ($t = = ' tom.com ') {           return  ' mail.tom.com ';      }elsE if ($t = = ' yeah.net ') {          return  ' www.yeah.net ';       }else if ($t = = ' 21cn.com ') {           return  ' mail.21cn.com ';      }else if ($t = = ' hotmail.com ') {           return  ' www.hotmail.com ';      }else  if ($t = = ' sogou.com ') {          return  ' mail.sogou.com ';       }else if ($t = = ' 188.com ') {           return  ' www.188.com ';      }else if ($t = = ' 139.com ') { 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.