ah, i think you got me on the right track. i had never even heard of the $argv array so that was a BIG help. however, i'm unsure what variable the recipient's email address is stored in.
i think this site has the answer to my problems:
http://binarios.com/lnb/qmail.html (the email system i have is qmail - i'm 99% sure of it.
from what i gathered from the information on that page i should be able to set my default email script to
-
| \pipe2scripts_dir\myscript.php "$RECIPIENT"
and retrieve the $RECIPIENT variable from the $argv array in php.
unfortunately, my hosting provider automatically adds slashes to the quotation marks so i've tried without the quotation marks and experimented with some other variations but haven't had any luck. i might have to submit a ticket to see if they can edit the code and manually remove the slashes.
i will feel silly if they go thru all that trouble and it doesn't work though. what do you think?