connecting to gmail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
playa4real
Forum Newbie
Posts: 2
Joined: Sun Feb 19, 2006 8:55 pm

connecting to gmail

Post by playa4real »

Hey,

I am trying to connect to my gmail account using the script below, but i can't connect. Does anyone know how to do this or what i am doing wrong. Any help is appreciated!

$mail = @imap_open('{pop.gmail.com:995/novalidate-cert/pop3/ssl}', '******@gmail.com', 'password')
or die("Connection to server failed");

i have enabled pop3 forwarding in gmail.. im using XAMPP (apache, mercurymail, mysql, php and all of that good stuff) and am currently working off of localhost.


Thanks!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

any errors being fired, in-page or in the server logs or something?
playa4real
Forum Newbie
Posts: 2
Joined: Sun Feb 19, 2006 8:55 pm

Post by playa4real »

nope, no errors.. :cry:
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

Try removing @ yet? I don't think that's the problem but it won't hurt anything
Post Reply