my $sender = Mail::Transport::Sendmail->new(...); $sender->send($message);
See SYNOPSIS in Mail::Transport::Send
Implements mail transport using the external 'Sendmail'
program.
When instantiated, the mailer will look for the binary in specific system
directories, and the first version found is taken.
Some people use Postfix as MTA. Postfix can be installed as replacement for Sendmail: is provides a program with the same name and options. So, this module supports postfix as well.
WARNING: When you do bulk email sending with local delivery via
Postfix, you can probably better use the SMTP backend to connect
to postfix. The sendmail
command delivers to maildrop
. From
maildrop
, the pickupd
will only sequentially insert messages
into cleanup
. That process can take considerable elapse time.
Directly inserting via smtpd
will parallellize the cleanup process.
See DESCRIPTION in Mail::Transport::Send