in reply to Re^2: Sending email using qmail
in thread Sending email using qmail

OK, you've got sendmail. When you write your script, where is the script run from? Your computer, or the server? If it's your computer, then I suspect you won't get it to work, since the sendmail program isn't on your computer.