Kiko has asked for the wisdom of the Perl Monks concerning the following question:
#!/perl/bin/perl use CGI qw(:standard); use Net::POP3; use strict; print header(); #Get CGI parameters my $hostname= param("hostname"); my $account= param("account"); my $password= param("password"); #Connect to Host my $connect = Net::POP3->new($hostname) or die "Unable to establish a +POP3 connection to $hostname.\n"; #Authenticate User defined($connect->login($account, $password)) or die "Unable to authen +ticate ($account, $password) at $hostname.\n"; #Retrieve Messages my $messages = $connect->list or die "Unable to retreive list of avaib +le mesages.\n"; #Display Messages my $msg; my $grab; foreach $msg (keys %$messages) { $grab .="<tr><td>$connect->top($msg)</td></tr>"; } print<<HTML; <html> <head><title>Web Mail</title> </head> <body> <table width=700> $grab </table> </body> </html> HTML
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Simple Email Check
by Henri Icarus (Beadle) on Jun 07, 2001 at 05:49 UTC | |
by Kiko (Scribe) on Jun 07, 2001 at 17:10 UTC | |
by Anonymous Monk on Jun 07, 2001 at 19:54 UTC | |
|
Re: Simple Email Check
by petdance (Parson) on Jun 07, 2001 at 01:45 UTC | |
by Kiko (Scribe) on Jun 07, 2001 at 01:51 UTC | |
|
Re: Simple Email Check
by xphase_work (Pilgrim) on Jun 07, 2001 at 01:29 UTC |