NAME

Mail::Transport::Receive - receive messages

INHERITANCE

Mail::Transport::Receive
  is a Mail::Transport
  is a Mail::Reporter

Mail::Transport::Receive is extended by
  Mail::Transport::IMAP4
  Mail::Transport::POP3

SYNOPSIS

my $receiver = Mail::Transport::POP3->new(...);
my $message = $receiver->receive($id);

DESCRIPTION

Each object which extends Mail::Transport::Receive implement a protocol which can get messages into your application. The internals of each implementation can differ quite a lot, so have a look at each separate manual page as well.

Current message receivers:

Extends "DESCRIPTION" in Mail::Transport.

METHODS

Extends "METHODS" in Mail::Transport.

Constructors

Extends "Constructors" in Mail::Transport.

$class->new(%options)

Inherited, see "METHODS" in Mail::Transport

Attributes

Extends "Attributes" in Mail::Transport.

$obj->logSettings()

Inherited, see "Attributes" in Mail::Reporter

Receiving mail

$obj->receive( [$unique_message_id] )

Receive one message from the remote server. Some receivers will provide the next message automatically, other are random access and use the specified ID.

Server connection

Extends "Server connection" in Mail::Transport.

$obj->findBinary( $name, [@directories] )

Inherited, see "Server connection" in Mail::Transport

$obj->remoteHost()

Inherited, see "Server connection" in Mail::Transport

$obj->retry()

Inherited, see "Server connection" in Mail::Transport

Error handling

Extends "Error handling" in Mail::Transport.

$obj->AUTOLOAD()

Inherited, see "Error handling" in Mail::Reporter

$obj->addReport($object)

Inherited, see "Error handling" in Mail::Reporter

$any->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )

Inherited, see "Error handling" in Mail::Reporter

$obj->errors()

Inherited, see "Error handling" in Mail::Reporter

$any->log( [$level, [$strings]] )

Inherited, see "Error handling" in Mail::Reporter

$any->logPriority($level)

Inherited, see "Error handling" in Mail::Reporter

$obj->notImplemented()

Inherited, see "Error handling" in Mail::Reporter

$obj->report( [$level] )

Inherited, see "Error handling" in Mail::Reporter

$obj->reportAll( [$level] )

Inherited, see "Error handling" in Mail::Reporter

$obj->trace( [$level] )

Inherited, see "Error handling" in Mail::Reporter

$obj->warnings()

Inherited, see "Error handling" in Mail::Reporter

Cleanup

Extends "Cleanup" in Mail::Transport.

$obj->DESTROY()

Inherited, see "Cleanup" in Mail::Reporter

DIAGNOSTICS

Warning: Avoid program abuse: specify an absolute path for $exec.

Specifying explicit locations for executables of email transfer agents should only be done with absolute file names, to avoid various pontential security problems. Cast by new()

Warning: Executable $exec does not exist.

The explicitly indicated mail transfer agent does not exists. The normal settings are used to find the correct location. Cast by new()

Error: Package $package does not implement $method.

Fatal error: the specific package (or one of its superclasses) does not implement this method where it should. This message means that some other related classes do implement this method however the class at hand does not. Probably you should investigate this and probably inform the author of the package. Cast by notImplemented()

SEE ALSO

This module is part of Mail-Transport version 3.008, built on November 24, 2025. Website: http://perl.overmeer.net/CPAN/

LICENSE

For contributors see file ChangeLog.

This software is copyright (c) 2001-2025 by Mark Overmeer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.