Help for this page

Select Code to Download


  1. or download this
    if (-e "/usr/bin/sendmail") {
        $sendmail = "/usr/bin/sendmail";
    ...
    if (-e "/var/qmail/bin/qmail-inject") {
        $sendmail = "/var/qmail/bin/qmail-inject";
    }#if
    
  2. or download this
    my $return = `/usr/lib/sendmail --help`;
    
  3. or download this
    if ( system( '/usr/lib/sendmail -t ...' ) eq 'EX_OK' ) {
        ...
    }#if
    
  4. or download this
    unless ( system( '/usr/lib/sendmail -bv to:test@test.com' ) ) {
        ### OK
    }#unless