- 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
- or download this
my $return = `/usr/lib/sendmail --help`;
- or download this
if ( system( '/usr/lib/sendmail -t ...' ) eq 'EX_OK' ) {
...
}#if
- or download this
unless ( system( '/usr/lib/sendmail -bv to:test@test.com' ) ) {
### OK
}#unless