Hi there nort99,
Well you have committed the first cardinal sin ;) (<? ?>) only use the short tags if you know the server (php.ini) config file supports it's use. To make for better compatibility on *every* server, say you decide to migraite for instance, use the full tag (<?php ?>) save headaches later...
Secondly, sending multiple emails means you need to loop, So ideally you will need the emails in an array, then loop through the array and for each iteration send an email.
And I suggest you read [
uk.php.net ] for explanations on parameters
$email = array('email1@domain.com','email2@domain.com','email3@domain.com');
$counter = count($email);//should equal three ;)
//include the from detail in the headers (if the from is the same for each email)
//set the mime type in the headers
//and store the message in the message var
//same for the subject
//loop da loop!
for ($i=0; $i < $counter; $i++){
mail($mail[$i], $subject, $message, $headers);
}
and just for reference:-
Facilities Learning \n<br> ";
$msg = $msg.''."Tool Questionnaire \n<br>";
$msg .= $msg.''." <br>";
$msg .= $msg.''."<br>";
$msg .= $msg.''."For Today's Question Click <a href='$updcv'>Here</a><BR>";
$msg .= $msg.''."<br>";
$msg .= $msg.''."<b></b></font></center>";
$msg .= "<table border=12><tr><td>$msg</td></table>";
$msg .= $msg.''."";
The first var is '=' the second and subsequent ones are joined on or built onto (concatenated) so use the relevant operator.. [
php.net ]
Hope that steers you on the correct path anyway..
Have fun and enjoy the rest of the project..
Cheers,
MRb