The sendmail daemon is for incoming mail, outgoing mail does not need the
daemon running to work.

---
-        Shawn L. Evans        -
- mailto:[EMAIL PROTECTED] -
-  Phone: 1.618.632.9252 x247  -


-----Original Message-----
From: Romeo Ninov [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 1:01 AM
To: [EMAIL PROTECTED]
Subject: RE: [Solaris-Users] problem sending mail with /usr/bin/mailx


IMHO you need some kind of MTA (who will transport a mail) If recepient is
local, yes you don't need it, but...

<><><><><><><><><><><><><><><><>
                        Regards: Romeo Ninov
<><><><><><><><><><><><><><><><>

>>> [EMAIL PROTECTED] 03/27/03 10:21 >>>
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
_______________________________________________
Solaris-Users mailing list
[EMAIL PROTECTED]
http://www.filibeto.org/mailman/listinfo/solaris-users

Reply via email to