thanks for answer number 1... about 2, i am narrowing down the problem. It seems tobe the way I am forming the subject and recipient. Something is wrong with the whitespaces, dashes, @, etc... a lot of escaping to be done now...
Thanks a lot! Leo -- Mensaje Original -- >Leonardo, > >First, you do not need sendmail running to send mail. > >Secondly, im not sure what would be wrong with the perl script, im not very >perl aware, but, try changeing mailx to mail and see what the results are. >Also, if you dont "need" perl for this, you could use simple shell.. > >cat $BLAH | /usr/bin/mailx -s $subject $destinatarios > > >--- >- Shawn L. Evans - >- mailto:[EMAIL PROTECTED] - >- Phone: 1.618.632.9252 x247 - > > >-----Original Message----- >From: Leonardo Lagos [mailto:[EMAIL PROTECTED] >Sent: Thursday, March 27, 2003 2:05 PM >To: [EMAIL PROTECTED] >Subject: [Solaris-Users] problem sending mail with /usr/bin/mailx > > >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 >_______________________________________________ >Solaris-Users mailing list >[EMAIL PROTECTED] >http://www.filibeto.org/mailman/listinfo/solaris-users > _______________________________________________ Solaris-Users mailing list [EMAIL PROTECTED] http://www.filibeto.org/mailman/listinfo/solaris-users
