hello
suppose I have a defined variable $items, which is a array contains several names. I want to send this array to my friends with mail() function
code likes
$items...
....
$to = "friend@hotmail.com";
$subject = "hello";
$message = "Hello! names are showling here:".
for($i=0;$i<$items.length-1;$i++)
{
"$items[$i]".
}
" ^_^.";
$from = "myemail@googlemail.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
the above code is just a idea, it doesn't work at all.
can we do this with mail() function?
appreciate for your help, thanks