Authentication through POP3

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
themeaty
Forum Newbie
Posts: 8
Joined: Thu Feb 16, 2006 11:21 am
Location: Wyoming

Authentication through POP3

Post 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!
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post 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.
themeaty
Forum Newbie
Posts: 8
Joined: Thu Feb 16, 2006 11:21 am
Location: Wyoming

Post 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!
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

I would suggest you look at d11's newest code snippet for further assistance and usage of fsockopen.

viewtopic.php?t=48055
themeaty
Forum Newbie
Posts: 8
Joined: Thu Feb 16, 2006 11:21 am
Location: Wyoming

Post by themeaty »

Okay thanks, I'll dig through it. If anybody else has suggestions please lemme' know.
Post Reply