1.

Solve : how to send mail from a script?

Answer» IM trying to WRITE a ksh script that WOULD SEND mail, im using
mail -t -w -m hello [emailprotected]

and it DOESNT work
whyQuote
im trying to write a ksh script that would send mail, im using
mail -t -w -m hello [emailprotected]

and it doesnt work
why


try this:

echo "hello" | mail [emailprotected]

you can also use the mailx commmand

echo "your msg" | mailx -s "Email Subject" [emailprotected]

hope this helps


Discussion

No Comment Found