my $message = Mail::Message->new(...); # Some extensions implement sending: $message->send; $message->send(via => 'sendmail'); my $sender = Mail::Transport::SMTP->new(...); $sender->send($message); # Some extensions implement receiving: my $receiver = Mail::Transport::POP3->new(...); $message = $receiver->receive;
See SYNOPSIS in Mail::Reporter
Objects which extend Mail::Transport
implement sending and/or
receiving of messages, using various protocols.
Mail::Transport::Send extends this class, and offers general functionality for send protocols, like SMTP. Mail::Transport::Receive also extends this class, and offers receive method. Some transport protocols will implement both sending and receiving.
See DESCRIPTION in Mail::Reporter