diff options
Diffstat (limited to 'cpan/lib/Mail/Mailer/sendmail.pm')
| -rw-r--r-- | cpan/lib/Mail/Mailer/sendmail.pm | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/cpan/lib/Mail/Mailer/sendmail.pm b/cpan/lib/Mail/Mailer/sendmail.pm index ea67d7e0..343b6cc1 100644 --- a/cpan/lib/Mail/Mailer/sendmail.pm +++ b/cpan/lib/Mail/Mailer/sendmail.pm @@ -1,17 +1,26 @@ +# Copyrights 1995-2017 by [Mark Overmeer <perl@overmeer.net>]. +# For other contributors see ChangeLog. +# See the manual pages for details on the licensing terms. +# Pod stripped from pm file by OODoc 2.02. +use strict; + package Mail::Mailer::sendmail; -use vars qw(@ISA); -require Mail::Mailer::rfc822; -@ISA = qw(Mail::Mailer::rfc822); +use vars '$VERSION'; +$VERSION = '2.19'; +use base 'Mail::Mailer::rfc822'; -sub exec { - my($self, $exe, $args, $to) = @_; +sub exec($$$$) +{ my($self, $exe, $args, $to, $sender) = @_; # Fork and exec the mailer (no shell involved to avoid risks) # We should always use a -t on sendmail so that Cc: and Bcc: work # Rumor: some sendmails may ignore or break with -t (AIX?) # Chopped out the @$to arguments, because -t means # they are sent in the body, and postfix complains if they - # are also given on comand line. + # are also given on command line. + exec( $exe, '-t', @$args ); } + +1; |
