Welcome Guest, Not a member yet? Register   Sign In
Can you Login into gmail from PHP Script directly ??
#1

[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
#2

[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/2...plication/ )
#3

[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
#4

[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.
#5

[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




Theme © iAndrew 2016 - Forum software by © MyBB