CodeIgniter Forums
Can you Login into gmail from PHP Script directly ?? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Can you Login into gmail from PHP Script directly ?? (/showthread.php?tid=50193)



Can you Login into gmail from PHP Script directly ?? - El Forum - 03-17-2012

[eluser]Make Code& Love Code[/eluser]
Hi !!! All
I am developing an applications using Codeigniter (PHP) and i want to login in gmail directly from script. I have stored my username and password in database. and Link is available in
my application so now i want to login in gmail once i click in that link.

Do anyone have solution ??
It will be highly appreciated if any solution posted here


Can you Login into gmail from PHP Script directly ?? - El Forum - 03-17-2012

[eluser]Noobigniter[/eluser]
Hi,
I do not know what you should do, but have you take a look here: https://developers.google.com/google-apps/gmail/ or libgmailer (there was an article here: http://azimyasin.wordpress.com/2007/10/24/using-gmail-authentication-within-your-web-application/ )


Can you Login into gmail from PHP Script directly ?? - El Forum - 03-19-2012

[eluser]Make Code& Love Code[/eluser]
Hi !!!
I have checked code and tried with that . But it shows error like
Deprecated: Call-time pass-by-reference has been deprecated and
Fail to connect because: Gmail: Invalid request. (libgmailer: Gmail seems to have changed the URL again.)

Do You have any solution for this or anything else ??

It will be appreciable to get reply.

With Thanks & Regards,
Sanjay


Can you Login into gmail from PHP Script directly ?? - El Forum - 03-20-2012

[eluser]Noobigniter[/eluser]
Can you tell me how you got this error?
I tested, but I was connected all the time, even with a fake email.
I tried to retrieve my mail, and I got like 302 Moved Temp reply with a link, which I headed for the connection to gmail.
I tried two three tricks, without results.

Even google aps I have found much, and I guess you either ^ ^.

I always see on github if ever there would not something interresting and the only thing I found is this: https://github.com/djpate/ContactInviter (Invite friends from Gmail, Yahoo! & Live !) but on cakephp.

In dir: class there is a gmailOauth.class.php extended with these oauthWrapper.class.php.
Once registered an API key from google, I guess there are not too many changes to make.

I'm sorry, but that's all I can do to help you now Confused

Hoping that you find what you need =)

Cordially.



Can you Login into gmail from PHP Script directly ?? - El Forum - 03-20-2012

[eluser]Make Code& Love Code[/eluser]
Hi !! Nobiigniter,

First of all thanks. I just run my php file which i located in www folder and pasted code which provided in that wordpress blog.But Once I run it was showing that error.

Anyways i have tried your second post also its asking for login if you are not logged in your gmail. What i wanted that is it should not ask me for login page. My Username and password is in Db.

I tried with Javascript Form submit and Oauth but both fails. And when I am using your provided gmail contact importer its showing "You must install php5-oauth to use this class"

Its really great to see your post here.

Please if you can help me.

Thanks in Advance