Hi Lagos ,
      Some mail Servers require that you specify a valid sender 
 domain 
 before relaying the mail . This is an anti spam function . So on the
 command line >>>
 
 mailx -s "Test" -r [EMAIL PROTECTED] [EMAIL PROTECTED] 
 
 In this case you are the sender and I am the recipient ...
 Hope this helps .......  
 
> ----- Original Message -----
> From: "Leonardo Lagos" <[EMAIL PROTECTED]>
> Date: Thursday, March 27, 2003 8:04 pm
> 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 
> > simpleopen 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

Reply via email to