automatically open gmail from my website using a form and php
is it possible to open gmail directly from my website using php?
let say my username and password for my gmail is on my sql database then i
have a form ready
<form id="gaia_loginform"
action="https://www.google.com/a/telexperience.com/LoginAction2?service=mail"
method="post" onsubmit="return(gaia_onLoginSubmit());">
<div id="gaia_loginbox">
<table class="form-noindent" cellspacing="3" cellpadding="5" width="100%"
border="0">
<tbody><tr>
<td valign="top" style="text-align:center" nowrap="nowrap"
bgcolor="e8e8e8">
<input type="hidden" name="ltmpl" value="default">
<input type="hidden" name="ltmplcache" value="2">
<div class="loginBox">
<table id="gaia_table" align="center" border="0" cellpadding="1"
cellspacing="0">
<tbody><tr>
<td class="smallfont" colspan="2" align="center">
Sign in to your account at
<h2>
Telexperience</h2>
</td>
</tr>
<tr>
<td colspan="2" align="center">
</td>
</tr>
<tr id="email-row">
<td nowrap="nowrap">
<div align="right">
<span class="gaia le lbl">
Username:
</span>
</div>
</td>
<td>
<input type="hidden" name="continue" id="continue"
value="https://mail.google.com/a/telexperience.com/">
<input type="hidden" name="service" id="service" value="mail">
<input type="hidden" name="rm" id="rm" value="false">
<input type="hidden" name="dsh" id="dsh" value="7026183628507023366">
<input type="hidden" name="ltmpl" id="ltmpl" value="default">
<input type="hidden" name="ss" id="ss" value="1">
<input type="hidden" name="timeStmp" id="timeStmp" value="">
<input type="hidden" name="secTok" id="secTok" value="">
<input type="hidden" name="GALX" value="jcN_8U_OyMA">
<input type="text" name="Email" id="Email" size="18" value=""
class="gaia le val">
</td>
</tr>
<tr>
<td></td>
<td align="right" style="color: #444444; font-size: 75%; overflow:
hidden;" dir="ltr">
@telexperience.com
</td>
<td></td>
</tr>
<tr>
<td></td>
<td align="left">
</td>
</tr>
<tr id="password-row" class="enabled">
<td align="right" nowrap="nowrap">
<span class="gaia le lbl">
Password:
</span>
</td>
<td>
<input type="password" name="Passwd" id="Passwd" size="18" class="gaia
le val">
</td>
</tr>
<tr>
<td> </td>
<td align="left">
</td>
</tr>
<tr id="rememberme-row" class="enabled">
<td align="right" valign="top">
<input type="checkbox" name="PersistentCookie" id="PersistentCookie"
value="yes">
<input type="hidden" name="rmShown" value="1">
</td>
<td>
<label for="PersistentCookie" id="PersistentCookieLabel" class="gaia le
rem">
Stay signed in
</label>
</td>
</tr>
<tr>
<td>
</td>
<td align="left">
<input type="submit" class="gaia le button" name="signIn" id="signIn"
value="Sign in">
</td>
</tr>
<tr id="ga-fprow">
<td colspan="2" height="33.0" class="gaia le fpwd" align="center"
valign="bottom">
<a id="link-forgot-passwd"
href="https://www.google.com/accounts/recovery" target="_top">
Can't access your account?
</a>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
</div>
<input type="hidden" name="asts" id="asts" value="">
then it will auto send the form to gmail when i run the php page, it will
get the username and password from the database and open my gmail
automatically,, will that be possible or is there any code for this
already?
the reason why i want this is that i would want my users to be able to
open their gmails without them knowing the password, they would have to go
to a link that i provided to be able to open the gmails assigned to them.
No comments:
Post a Comment