mrjasonsweet
11-14-2007, 11:12 PM
My script sends email fine when I have a hard-coded email address but when I try to dynamically change the email recipient based on the results of a recordset, the email script fails.
Clearly, I have the wrong syntax. The code below is incomplete and shows just the relevant part of the script:
<?php
$to = $row_rs_password['email_address'];
$subject = 'Rycote.com - Password Request';
$from = 'root@crozius.com';
$message ='';
My problem, it seems, has to do with : $row_rs_password['email_address'].
What is the proper syntax?
Thanks very much for any feedback!
Clearly, I have the wrong syntax. The code below is incomplete and shows just the relevant part of the script:
<?php
$to = $row_rs_password['email_address'];
$subject = 'Rycote.com - Password Request';
$from = 'root@crozius.com';
$message ='';
My problem, it seems, has to do with : $row_rs_password['email_address'].
What is the proper syntax?
Thanks very much for any feedback!