Hi,
I get the following error message with PHP:
Warning: Bad Message destination in c:\web projects\web site\html\scripts\tellfriend.php on line 111
I've done a for loop as follows:
for ($i = 0; $i <= 6; $i++) {
$to = $friendemail[$i];
$friend = $friendname[$i];
mail("$friendemail[$i]", "Your friend $yourname recommends this Web site" , "Hello $friend,\nYour friend $yourname thought you might be interested in http://www.all-about-making-money-online.com","From:$yourname <$youremail>");
}
where the email address ($friendemail) is in an array, and gets retrived as the loop is run.
When instead of the array I put a normal variable or fixed value (in the "to" area of the mail function), then there are no problems.
The problem seems to occur only when I use the array.
What could be wrong? I aint got a clue.