Page 1 of 1

Authentication through POP3

Posted: Wed May 10, 2006 2:09 pm
by themeaty
Hi, does anyone know how to create a simple POP3 authentication? Don't need to check e-mail or anything, just verify the user exists.

I'm building a customizable homepage for an internet provider and they're going to use e-mail customer's e-mail address and password to login rather than have the customer create a new login.

Thanks!

Posted: Wed May 10, 2006 3:26 pm
by Burrito
assuming you know the user's username and pw, you can use fsockopen() to connect to the mail server and determine if they can log in.

Posted: Wed May 10, 2006 3:46 pm
by themeaty
I've never used fsockopen(). Is it messy? Is there anything I should know? Do I use the same POP address and port with fsockopen() that e-mail clients use to check? Thanks!

Posted: Wed May 10, 2006 3:50 pm
by Burrito
I would suggest you look at d11's newest code snippet for further assistance and usage of fsockopen.

viewtopic.php?t=48055

Posted: Wed May 10, 2006 4:53 pm
by themeaty
Okay thanks, I'll dig through it. If anybody else has suggestions please lemme' know.