> I tried the command : > mnc host 25 > HELO > MAIL FROM:[EMAIL PROTECTED] > RCPT TO:[EMAIL PROTECTED] > DATA > blabla > . > QUIT > > And it worked fine ! And now I would to make a script with these commands... > I wrote that script but it doesn't work... > > #!/bin/ash > mnc 192.168.100.4 25 > HELO > MAIL FROM:[EMAIL PROTECTED] > RCPT TO:[EMAIL PROTECTED] > DATA > blabla > > . > QUIT
Properly talking to an SMTP server is pretty complex, and requires you wait for (and parse) the return values sent by the mail system, timeout if the server never responds, etc. I have a script that works pretty well in all cases I've encountered so-far. It's in /lib/POSIXness/POSIXness.mail if you get one of my Dachstein distributions, or you can grab the POSIXness scripts from the LEAF project CVS archives on sourceforge... Charles Steinkuehler http://lrp.steinkuehler.net http://c0wz.steinkuehler.net (lrp.c0wz.com mirror) _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
