Re: [gkornbluth] PHP mail question
Hi Jerry,
There's a problem with your first example:
$sendto = '$_REQUEST['email']';
What this will do is assign the value "$_REQUEST['email']" to the variable $sendto, instead of the value held in $_REQUEST['email'].
I would suggest trying this:
$sendto=$_REQUEST['email'];
You don't need to worry about putting quotes around it, as the server will automatically treat it as a string.
If this doesn't work, try putting this code in right before you try to send the email:
showme($_REQUEST);
exit;
This is some debugging code that will display all the different variables held in the $_REQUEST array. You can take a look at the email variable and see if there is anything wrong with it's format.
Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/