Location: PHPKode > projects > Radtracker > radtracker/messagesender.php
<?php
include ("pagefunctions.php");
gentop("Message Sender");

$message = "The following wishes have been made reality at radTracker!

On the view issues page it is now possible to order issues by column name.  Do this by clicking on the column heading you wish to order by.

Thank you for your wishes,

-Max warnock";
echo "<div align='center'><h1>Message Sender</h1></div><br><br>";
$sql_command = "SELECT * FROM personnel";
$sql_result = mysql_query($sql_command,$connection) or die (mysql_error());

while ($row = mysql_fetch_array($sql_result)) {
  $name = $row["Name"];
  $email = $row["Email"];
  mail($email,"No Longer Wishes!",$message);
  echo "Message Mailed to... $name at... $email<br><br>";
}

mail("hide@address.com","No Longer Wishes", $message);
echo "Message Mailed to... hide@address.com<br><br>";
echo "Thank You";

genbottom();
?>
Return current item: Radtracker