Fri, 17 May 2024


How to check the list of messages in a mailbox using pop3 and Net::POP3?

By: Nathalie, NetArt Media
Wed, 13 May 2020

The simple example below shows the basic steps in order to check the list of messages in a mailbox using pop3 and Net::POP3 with Perl


use Net::POP3;

# Create a new POP3 object
my $pop3 = Net::POP3->new($ServerName, Debug => 1);

# Get the list of messages
my $Messages = $pop3->list();


Category: Web Development
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox