This function distributes mail to a mailing list, out of an array. Wether the array is plundered from a database, a file, or from the code, the function only takes a prepared one. Also, this function is only good for HTML messages.
The array's syntax is to be:
array("recipent's name"=>"email","recipent's name"=>"email","recipent's name"=>"email");
In-order to insert the name into the email, just use ((name)), as it will be replaced with the array-given value.
$from is for the email you want to be replied to.
If all recipents were mailed successfully, the function returns true, else it returns the errors.
You can use it like so:
if($handle=@mail_list($array,$subject,$message,$from)) {
#...#
}
else {
echo $handle;
}
If you want, I can make another function with a lot more variables to send. Just request it via comment, please.