On Wed, 24 Oct 2001, Blaise Lab wrote:
> Hello,
>
> 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
I think the following is the correct syntax...
-----
#!/bin/ash
cat <<EOF | mnc 192.168.100.4 25
HELO
MAIL FROM:[EMAIL PROTECTED]
RCPT TO:[EMAIL PROTECTED]
DATA
blabla
.
QUIT
EOF
-----
... but you probably ought to use one of the mail scripts out there to
properly conform to the prompting of the smtp protocol and report errors..
Charles has one at his website... or there might already be one on your
disk.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<[EMAIL PROTECTED]> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...2k
---------------------------------------------------------------------------
_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user