in reply to Re^2: send email module
in thread send email module

How about this:

PATH={trustworthy:path} sendmail_script <ARGS>

Replies are listed 'Best First'.
Re^4: send email module
by bigup401 (Pilgrim) on Aug 28, 2020 at 21:54 UTC

    thanks, i solved my problem with this

    $ENV{'PATH'} = '/usr/sbin/sendmail';

    tho i never thought that all mail modules use -t command for mail sending, thats why i asked if there any module which dont use -t command for mail sending

      The usual recommendation is: $ENV{PATH} = '/bin:/usr/bin';