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 ') {