I have successfully run the following code on Windows but I get a "500 Internal server error" when I upload the file to a Unix server. I have determined that it is the "@" in $loginname that is causing the problem. How do I solve the problem? Thanx.
#!/usr/bin/perl
use Mail::POP3Client;
$loginname = "user@example.com";
$password = "password";
$POPserver = "pop.example.com";
$pop = new Mail::POP3Client($loginname, $password, $POPserver);
$MessageCount = $pop->Count;
print "Content-type: text/html\n\n";
if ($pop->Count == -1){
print "Connection Failed";
} else {
print "Connected!";
}