Mail/Mailer/sendmail.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
exec
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # Copyrights 1995-2024 by [Mark Overmeer <markov@cpan.org>].
2 # For other contributors see ChangeLog.
3 # See the manual pages for details on the licensing terms.
4 # Pod stripped from pm file by OODoc 2.03.
5 # This code is part of the bundle MailTools. Meta-POD processed with
6 # OODoc into POD and HTML manual-pages. See README.md for Copyright.
7 # Licensed under the same terms as Perl itself.
8  
9 package Mail::Mailer::sendmail;{
10 our $VERSION = '2.22';
11 }
12  
13 use base 'Mail::Mailer::rfc822';
14  
15 use strict;
16  
17 sub exec($$$$)
18 { my($self, $exe, $args, $to, $sender) = @_;
19 # Fork and exec the mailer (no shell involved to avoid risks)
20  
21 # We should always use a -t on sendmail so that Cc: and Bcc: work
22 # Rumor: some sendmails may ignore or break with -t (AIX?)
23 # Chopped out the @$to arguments, because -t means
24 # they are sent in the body, and postfix complains if they
25 # are also given on command line.
26  
27 exec( $exe, '-t', @$args );
28 }
29  
30 1;