<?php $username = 'login@googlemail.com'; $password = ''; $ch = curl_init('https://mail.google.com/mail/feed/atom'); curl_setopt($ch, CURLOPT_RETURNTRANSER, true); curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); print curl_exec($ch); ?>
<?php echo file_get_contents("https://login@gmail.com:pass@mail.google.com/mail/"); ?>
https://www.google.com/accounts/ServiceLoginAuth?ltmpl=default<mplcache=2&continue=http://mail.google.com/mail/?hl=ru&tab=wm&service=mail&rm=false&dsh=-5138516739805705045<mpl=default&hl=ru<mpl=default&scc=1&GALX=El77ozLLLDY&Email=ПОЧТА_ГУГЛА&Passwd=ПАРОЛЬ&rmShown=1&signIn=Войти&asts=