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