Thanks guys for your help. I've been reading through these and one thought just hit me on the PHPit page you listed. There was a section of code where he talked about removing read messages from the server.
CODE
// Remove from mail server
$do = $pop3->delete_mail ($i);
if ($do == false) {
echo $pop3->error;
}
I noticed this was set to false, so that means it won't delete those messages correct?....
Also I understand that this was a basic script, however for security reasons, I wouldn't want someone to be able to just look at my php file and figure out my username & pass. Basically I'd like to replace this section of code:
CODE
// Connect to mail server
$do = $pop3->connect ('YOUR-EMAIL-SERVER-HERE);
if ($do == false) {
die($pop3->error);
}
with a login page where I would type that in, also on that same page I would like to replace this section of code:
CODE
// Login to your inbox
$do = $pop3->login ('email@address.goes.here.com, 'password-here');
if ($do == false) {
die($pop3->error);
}
echo '
Logged in';
with a box for the user to input that info. Again thanks for the help, and anymore help is appreciated.
This post has been edited by webmin: 13 Jul, 2008 - 06:06 PM