Hi people,
I am trying to send mail with mailx.
When I execute mailx from the command line, it works, and I can send my
mail.
However, if I try to execute it from a perl script, it doesn't work (it
doesn't complain, either).
Question 1: Do I need sendmail running? I have tested mailx with and without
sendmail running, and it doesn't make a difference.
Question 2: what could be wrong with my perl script? It is a very simple
open with a pipe, as documented everywhere:
$SIG{PIPE} = 'IGNORE';
open (CORREO, '|/usr/bin/mailx -vn -s \"$subject\" \"$destinatarios\"')
|| die "error open pipe: status=$?\n$!\n";
print CORREO $msj || die "error write pipe: status=$?\n$!\n";
close CORREO || die "error en el close: status=$?\n$!\n";
exit 0;
Thanks,
Leo
_______________________________________________
Solaris-Users mailing list
[EMAIL PROTECTED]
http://www.filibeto.org/mailman/listinfo/solaris-users