Php simulates GMAIL, HOTMAIL (MSN), YAHOO, 163,126 email login (original) This post was last edited by hudie631489527 at 2010-10-0723: 18: 31 and has been busy recently, at the end of this 11-day holiday, I wrote this article to make these source code open-source. of course, these methods may not be available, but it should be in this direction, because of the current php simulation GMAIL, HOTMAIL (MSN), YAHOO, 163,126 mailbox login (original)
This post was last edited by hudie631489527 at 23:18:31
I have been busy recently. I will post this article at the end of this 11 holiday to make these source code open-source.
Of course, these methods may not be available, but it should be in this direction, because the current UCHOME Port station
We planned to change the display method in the friend invitation. at first, I didn't care about it. that's all!
When we got this, we found that the place in UCH is made of roaming type, which makes people have no solution and cannot be changed!
Alas, since I have promised to say yes, but now the actual situation is not good, I feel sorry. to solve this problem quickly, on GOOGLE,
Baidu searched it again, and the result was unexpected. in the example of an open-source 126 mailbox, none of the others were found. some cool kept QQ and asked for other source code,
You can buy it with QQ! No comment on this person! I spent some time and finished the whole process, and I was lucky enough to get a few results. due to limited time, I have been working on projects, so I don't care about anything else. now I am giving GMAIL, HOTMAIL (MSN), PHP source code of YAHOO's email contact:
1. GMAIL
Define ("COOKIEJAR", tempnam (ini_get ("upload_tmp_dir"), "cookie"); // defines the path where COOKIES are stored and requires operation permissions
Define ("TIMEOUT", 1000); // time-out setting
Class GMAIL
{
Private function login ($ username, $ password)
{
// Step 1: capture the data on the logon page and write down the cookies
$ Cookies = array ();
$ Matches = array ();
// Obtain the form
$ Login_url = "https://www.google.com/accounts/ServiceLoginAuth ";
$ Ch = curl_init ($ login_url );
Curl_setopt ($ ch, CURLOPT_SSL_VERIFYPEER, false );
Curl_setopt ($ ch, CURLOPT_COOKIEJAR, COOKIEJAR );
Curl_setopt ($ ch, CURLOPT_RETURNTRANSFER, 1 );
$ Contents = curl_exec ($ ch );
Curl_close ($ ch );
// Simulate parameters
$ Name = array ('dsh', 'timestamp', 'sectok ');
Foreach ($ name as $ v ){
Preg_match ('/
/I ', $ contents, $ matches );
If (! Empty ($ matches )){
$ V = $ matches [1];
$ Matches = array ();
}