Subject: | Should be able to send reports via system sendmail |
It is currently impossible to configure CPANPLUS to send test reports
via the system sendmail. This is important e.g. when the system is a
laptop and sendmail provides a reliable SSL SMTP connection to a server
that the user authenticates against. This method can be the only
reliable SMTP method from the laptop.
Test::Reporter provides two flags for new() to control its behaviour
that affect this bug: "transport" should be set to "Mail::Send", and
"mail_send_args" should be set to ["sendmail"]. When both flags are set,
Test::Reporter will tell Mail::Send (and Mail::Send will tell
Mail::Mailer) to use the system sendmail. These should be added to
CPANPLUS::Internals::Report::_send_report, line 501 onwards, i.e.
my $report = Test::Reporter->new(..., transport =>
$conf->get_conf("cpantest_transport"), mail_send_args =>
$conf->get_conf("cpantest_mail_send_args"))
or so.
Another option would be to add SSL/TLS support to the SMTP framework
provided by Mail::Send. This is much more work, however, and all of it
is outside CPANPLUS.