in reply to mail from script help
This way you execute the mail command with three parameters - I can't say why it does not work - since I don't know what parameters the mail command takes, but the last one is a bit strange. Perhaps you wanted to simulate input to the mail program, but to do that you need to have a pipe to it - how to do it you can find in perldoc -f open.