]> mj.ucw.cz Git - pciids.git/blobdiff - PciIds/Email.pm
Tooltips with name in admin interface
[pciids.git] / PciIds / Email.pm
index 67578860ef9612b19ad9aa19c6d639ddf5d27575..69daedba052ba8371fdae98eced4e2091689fb3a 100644 (file)
@@ -35,6 +35,7 @@ sub sendMail( $$$ ) {
        ( $error, $to ) = emailCheck( $to, undef );
        die "Invalid email in database $to\n" if defined $error;
        $body =~ s/^\.$/../gm;
+       $ENV{'PATH'} = '/usr/sbin';
        open SENDMAIL, "|$sendmail -f'$from' '$to'" or die 'Can not send mail';
        print SENDMAIL "From: $from\n".
                "To: $to\n".