in reply to seeking sendmail enlightenment
to this:if (open (SENDMAIL, "| $sendmailpath -t"))
Then look at the /tmp/maildebug.txt after you run your script and you'll see the output of running the command.if (open (SENDMAIL, "| $sendmailpath -t -v > /tmp/maildebug.txt"))
Or you could just use something like the following, if you want to just see the output as part of the page (but make sure you print the Content-type header first):
if (open (SENDMAIL, "| $sendmailpath -t -v"))
|
|---|