# Trebuie sa recunosc ca m-am exprimat eu ciudat. Imi cer scuze. Problema e
# asa: Vreau sa trimit din Unix Aix de la consola emailuri folosind un
# server de mail care il am pe o alta masina unde am user si parola. NU pot
# folosi nici un client de mail pentru ca acea comanda de la consola trebuie
# sa o inglobez intr-un program! Deci cred ca solutia ar fi sa folosesc
# sendmailul care este deja instalat pe acest Aix.

   How about:
  cat mail.txt | perl -MNet::Telnet -e '
    $s=new Net::Telnet(Host=>"<server_de_mail>", Port=>25);
    $s->print("HELO $ENV{HOSTNAME}");
    $s->print("MAIL FROM: <sender>"); $s->print("RCPT TO: <receiver>");
    $s->print("DATA"); $s->print for(<STDIN>);
    $s->print("."); $s->print("QUIT");
  '
  # ?

   E un exemplu destul de simplu, dar daca asta e ceea ce ai nevoie, exista
 ceva mai dezvoltat...
-- 
Radu <[EMAIL PROTECTED]> www.littledragon.f2s.com
It is the weak who are cruel, only the stong can be truly gentle.
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui