- if ($out) {
- if (!open(OUT, $out)) {
- $main::lxdebug->leave_sub();
- return "$out : $!";
- }
- } else {
- if (!open(OUT, ">-")) {
- $main::lxdebug->leave_sub();
- return "STDOUT : $!";
- }
+ if (!open(OUT, $main::sendmail)) {
+ $main::lxdebug->leave_sub();
+ return "$main::sendmail : $!";