<?php $username = ''; $password = ''; $ch = curl_init('https://mail.google.com/mail/feed/atom'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); $content = curl_exec($ch); if(!strpos($content, 'Unauthorized')) echo "Good account"; else echo "Bad acoount"; ?>
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=